【发布时间】:2012-05-29 00:29:20
【问题描述】:
$ ./cruncher & ./cruncher & ./cruncher &
$ ps -C cruncher -p $$ -o pid,state,cmd
PID S CMD
2588 S bash
2657 R /bin/sh ./cruncher
2658 R /bin/sh ./cruncher
2659 R /bin/sh ./cruncher
-C cmdlist Select by command name.
This selects the processes whose executable name is
given in cmdlist.
-p pidlist Select by PID.
This selects the processes whose process ID numbers
appear in pidlist.
问题>$$是什么意思?
【问题讨论】:
标签: linux