1916: ps (Acronis Linux Command)

use Google Translate

Reports a snapshot of the current processes

The ps command displays information about a selection of the active processes.

By default, ps selects all processes with the same effective user ID (EUID) as the current user and associated with the same terminal as the invoker. It displays the process ID (PID), the terminal (tty) associated with the process (TTY), the cumulated CPU time in [dd-]hh:mm:ss format (TIME), and the executable name (CMD). The use of BSD-style options will add process state (STAT) to the default display. The use of BSD-style options will also change the process selection to include processes on other terminals (TTYs) that are owned by you; alternately, this may be described as setting the selection to be the set of all processes filtered to exclude processes owned by other users or not on a terminal. Output is unsorted by default.

Except as described below, process selection options are additive. The default selection is discarded, and then the selected processes are added to the set of processes to be displayed. A process will thus be shown if it meets any of the selection criteria.

Syntax:

  • ps

Report process status

  • USAGE_PS
  • -c show SE Linux context
  • w wide output

Example:

$ ps
PID Uid Gid State Command
1 root root S init
2 root root S [kflushd]
3 root root S [kupdate]
4 root root S [kpiod]
5 root root S [kswapd]
742 andersen andersen S [bash]
743 andersen andersen S -bash
745 root root S [getty]
2990 andersen andersen R ps

See also Acronis Linux Commands.

Tags: