オプション
- -e
- Select all processes
- -l
- Long format. The -y option is often useful with this.
- -y
- Do not show flags; show rss in place of addr
- -f
- full-format listing
- -o
- User-defined format.
- a
- Lift the BSD-style "only yourself" restriction
- u
- user-oriented format
- x
- Lift the BSD-style "must have a tty" restriction
$ ps -eo pid,comm | grep sshd 589 sshd 3620 sshd 3634 sshd