Beginner
Package: procps
ps
Show a snapshot of currently running processes.
Syntax
ps [options]
Description
ps reports the processes running at the moment it is invoked (unlike top, it does not refresh automatically), and is most often used with the "aux" or "-ef" flag combinations to show every process on the system.
Examples
ps aux
Show all processes for every user, BSD-style output
ps -ef
Show all processes, UNIX-style output with full command lines
ps aux --sort=-%mem | head
Show the top memory-consuming processes
Applies to
Put it into practice