cheat-fork-echo/cheat/cheatsheets/ps

16 lines
335 B
Plaintext
Raw Permalink Normal View History

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
# Exclude grep from your grepped output of ps.
# Add [] to the first letter. Ex: sshd -> [s]shd
ps aux | grep '[h]ttpd'