macOS コマンド例
macOS(Monterey)のターミナルでよく利用するコマンド例。
man をテキスト出力
man ps | col -b
コマンドの結果(標準出力)をクリップボードにコピー
ls -al | pbcopy
プロセス一覧表示(他のユーザー含む)
ps -ef
psコマンドman より
-A Display information about other users' processes, including those without controlling terminals. -e Identical to -A. -f Display the uid, pid, parent pid, recent CPU usage, process start time, controlling tty, elapsed CPU usage, and the > associated command. If the -u option is also used, display the user name rather then the numeric uid. When -o or -O is used to add to the > display following -f, the command field is not truncated as severely as it is in other formats.