System and processes

The ps command

Shows the processes running on the system.

Syntax

ps [aux] | ps -ef | ps -lTry it in the terminal →

Most useful options

auxEvery process, with user and resource usage
-efEvery process in long format, with the parent process (PPID)
-lLong format with the priority (NI column)

Copy-ready examples

$ psYour processes in this terminal
$ ps auxEverything running on the system
$ ps -efAll of them with their parent
$ ps -lWith the priority (NI)

You can try them in the browser terminal: it does not touch your computer.

Typical mistakes

  • Each process has a PID, its identity number to manage it with kill.

Related commands

FAQ

How do I watch processes live?

With top or htop, which refresh by themselves.

Learn to actually use it

The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.

Start the free course