The Linux Newbie Guide  ⇒    Fundamentals     Advanced     Supplement   Command Index   ENG⇒中
All rights reserved, please indicate the source when citing
  

ps - Display Process Status



The ps(processes status) command displays basic information about processes.

The basic syntax of the ps command is ps [OPTIONS].

Some commonly used options include:

Examples:
$ seq 1 1000000 ←List numbers from 1 to 1000000
1
2
3
4 Ctrl+Z ←Press <Ctrl+Z> to pause the current program
[1]+ Stopped                seq 1 100000000
$ tar -Jcvf file.tar.xz /etc &> /dev/null & ← Run 'tar' to archive and 'xz' to compress in the background
[2] 14859
$ ps ←Display process status
PID TTY TIME CMD
14683 pts/0 00:00:00 bash
14829 pts/0 00:00:00 seq ←Process stopped
14859 pts/0 00:00:00 tar ←Background 'tar' process
14866 pts/0 00:00:02 xz ←Background 'xz' process
14867 pts/0 00:00:00 ps


For more ps examples, explanations, options, you can refer to the provided link.