备忘
http://www.cnblogs.com/vamei/archive/2012/10/07/2713023.html
[root@localhost ~]# ps -o pid,pgid,ppid,sid,tty,comm PID PGID PPID SID TT COMMAND 4508 4508 4504 4508 pts/1 bash 4616 4616 4508 4508 pts/1 ps 再来: [root@localhost ~]# ps -o pid,pgid,ppid,sid,tty,comm|cat PID PGID PPID SID TT COMMAND 4508 4508 4504 4508 pts/1 bash 4623 4623 4508 4508 pts/1 ps 4624 4623 4508 4508 pts/1 cat [root@localhost ~]#
其中,bash是我们输入命令时所用的shell,是用户界面的起点。