请看如下两种方式:
<pre name="code" class="html"><pre name="code" class="html">[info@localhost ~]$ ps -U 500 -f h
info 3964 3962 0 09:47 ? S 0:00 sshd: info@pts/2
info 3965 3964 0 09:47 pts/2 Ss+ 0:00 -bash
info 5468 3964 0 10:09 ? Ss 0:00 /usr/libexec/openssh/sftp-server
info 5944 1 0 2011 ? Ssl 0:00 /usr/libexec/bonobo-activation-server --ac-activate --ior-output-fd=16
info 6377 6375 0 10:21 ? S 0:00 sshd: info@pts/3
info 6378 6377 0 10:21 pts/3 Ss+ 0:00 -bash
info 7068 7066 0 10:32 ? S 0:00 sshd: info@pts/4
info 7069 7068 0 10:32 pts/4 Ss 0:00 -bash
info 7740 7069 0 10:43 pts/4 R+ 0:00 ps -U 500 -f h
info 19376 19375 0 2012 pts/1 S 0:00 -bash
root 19427 19376 0 2012 pts/1