mirror of
https://github.com/cheat/cheat.git
synced 2024-11-22 22:11:35 +01:00
16 lines
335 B
Plaintext
16 lines
335 B
Plaintext
# To list every process on the system:
|
|
ps aux
|
|
|
|
# To list a process tree
|
|
ps axjf
|
|
|
|
# To list every process owned by foouser:
|
|
ps -aufoouser
|
|
|
|
# To list every process with a user-defined format:
|
|
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'
|