10行目: | 10行目: | ||
;-o | ;-o | ||
:User-defined format. | :User-defined format. | ||
;-p | |||
:--pid | |||
;a | ;a | ||
:Lift the BSD-style "only yourself" restriction | :Lift the BSD-style "only yourself" restriction |
2019年3月9日 (土) 21:22時点における最新版
オプション
- -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.
- -p
- --pid
- 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