Macos Notes: Difference between revisions

From Federal Burro of Information
Jump to navigationJump to search
(Created page with "== 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")
 
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 10: Line 10:


  ps -ef| grep -v System/Library | grep -v Applications
  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
== Stock terminal app ==
no copy format:
defaults write com.apple.Terminal CopyAttributesProfile com.apple.Terminal.no-attributes
( source https://apple.stackexchange.com/questions/108422/text-copied-from-terminal-with-formatting-in-mavericks-10-9-yosemite-10-10 )

Latest revision as of 21:10, 5 June 2020

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

Stock terminal app

no copy format:

defaults write com.apple.Terminal CopyAttributesProfile com.apple.Terminal.no-attributes

( source https://apple.stackexchange.com/questions/108422/text-copied-from-terminal-with-formatting-in-mavericks-10-9-yosemite-10-10 )