Why does the ps
shows a process even if it is not running. While Firefox is running:
$ echo $(ps aux | awk '/firefox/{print $2}')
5964 6041
But when Firefox is not running, I tried to run the same command. It showed a different PID each time.
I tried grepping it:
$ ps aux | grep firefox
greenpa+ 6056 0.0 0.0 15956 948 pts/11 S+ 09:29 0:00 grep --color=auto firefox
What does it mean?