18行目: | 18行目: | ||
$ ps -eo pid,comm | grep sshd | $ ps -eo pid,comm | grep sshd | ||
589 sshd | |||
3620 sshd | |||
3634 sshd |
2019年2月26日 (火) 10:44時点における版
オプション
- -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