According to the
man page of
ps command, the
Lift the BSD-style "must have a tty" restriction, which is imposed upon the set of all processes when some BSD-style (without "-") options are used or when the ps personality setting is BSD-like. The set of processes selected in this manner is in addition to the set of processes selected by other means. An alternate description is that this option causes ps to list all processes owned by you (same EUID as ps), or to list all processes when used together with the a option.
-a Select all processes except both session leaders (see getsid(2)) and processes not associated with a terminal.
Ubunbtu 16.04 laptop:
$ ps -a | wc -l 132 /etc/systemd/system $ ps -x | wc -l 113
Does this mean I have 132 processes associated with a terminal (and not session leaders at the same time)? How can this be since I have only one
terminator instance open (and this with only one terminal window running just some commands)?
Can anyone elaborate a bit on the difference among
We all know that to get all the processes running we need to combine those two but what is their exact difference?