2013-08-24 15:46:50 +02:00
|
|
|
# To list every process on the system:
|
|
|
|
ps aux
|
|
|
|
|
2013-10-09 00:16:31 +02:00
|
|
|
# To list a process tree
|
|
|
|
ps axjf
|
|
|
|
|
2013-08-24 15:46:50 +02:00
|
|
|
# To list every process owned by foouser:
|
|
|
|
ps -aufoouser
|
|
|
|
|
|
|
|
# To list every process with a user-defined format:
|
2013-10-09 00:16:31 +02:00
|
|
|
ps -eo pid,user,command
|
2014-03-07 14:52:50 +01:00
|
|
|
|
|
|
|
# Exclude grep from your grepped output of ps.
|
|
|
|
# Add [] to the first letter. Ex: sshd -> [s]shd
|
|
|
|
ps aux | grep '[h]ttpd'
|