Get `ps` to Show Process Not Attached to Terminal With Flags

917 views Asked by At

Playing with the behavior of ps -elf and ps aux, I notice that ps aux tends to list more processes.

Reading the man page, I suspect the reason why ps aux would have more entries is that x in aux will also grab processes that aren't attached to any terminal.

Is there a way to provide command line flags to ps to also include those non attached processes? I notice that there is one to specify a tty or terminal but can't seem to find a flag that would also grab the unattached processes.

I have also tried the following but they seem to be invalid syntax: ps -elfx and ps -elf x.

For reference, I am running this on Mac OSX and believe there maybe inconsistencies with the linux counterpart.

0

There are 0 answers