Macos Notes

From Federal Burro of Information
Revision as of 17:27, 17 December 2019 by David (talk | contribs)
Jump to navigationJump to search

PS

what a pain the butt.

by cpu usage:

ps -er -o pid,pcpu,comm

lost but some cruft removed:

ps -ef| grep -v System/Library | grep -v Applications

Gawk

by default macos doesn't use gawk, it uses an old bsd awk, which might not behave the same ( IFS OFS FS )

Getting OSS installed

best to use brew

Open text file in Visual Studio Code from terminal:

code filename

Netstat -p

lsof -Pnl +M -i4 | grep