On the first virtual console I have executed this command:
And then I am back here in terminal window:
Code:
[root@localhost ~]# ps -af
UID PID PPID C STIME TTY TIME CMD
root 5850 5821 0 17:37 tty1 00:00:01 watch -d date
root 6555 5799 0 17:56 pts/1 00:00:00 ps -af
[root@localhost ~]#
The underlines PPID 5821 is not in PID. Why?
Now let's have a look at this command:
Code:
[root@localhost ~]# ps -f
UID PID PPID C STIME TTY TIME CMD
root 5799 5796 0 17:36 pts/1 00:00:00 bash
root 6624 5799 0 17:58 pts/1 00:00:00 ps -f
[root@localhost ~]#
Here 5799 is in both PID and PPID.