Whenever I run a command in the terminal on Linux, at runtime, its PID changes.
The command I used after running one program two times at runtime, was
ps -l. Why does the program change process ID?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
Pid - is process id Ppid - is parent process id When you run your program, it gets his own pid, therefore pid changes when you run programm some times. Ppid is not changes, because parent process for program is terminal, from which you ran programs
Maybe parent is not terminal, but your programs has one parent for all, and therefore ppid is not changed