terminal.cab

All commands

ps

Topic: Processes

Program: ps

Shows running processes.

Package: prozesse

Usage

ps [options]

Description

Show the processes of this machine: without options your processes on this terminal, with -e or ax all of them.

Options in the simulator

No options.

42 more options of the real program, not in the simulator yet
  • -A not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • -e not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • -a not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • -d not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • -N, --deselect not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • -C needs a value not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • -G, --Group needs a value not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • -g, --group needs a value not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • -p, --pid needs a value not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • --ppid needs a value not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • -q, --quick-pid needs a value not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • -s, --sid needs a value not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • -t, --tty needs a value not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • -u, --user needs a value not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • -U, --User needs a value not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • -D needs a value not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • -F not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • -f not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • --forest not in the simulator yet

    On a real system ps shows the tree of processes with it; the simulator shows a list.

  • -H not in the simulator yet

    On a real system ps shows the tree of processes with it; the simulator shows a list.

  • -j not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • -l not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • -M not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • -O needs a value not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • -o, --format needs a value not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • -P not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • -y not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • --context not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • --headers not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • --no-headers not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • --cols, --columns, --width needs a value not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • --rows, --lines needs a value not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • --signames not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • -L not in the simulator yet

    On a real system ps shows threads one by one with it; the simulator only shows processes.

  • -m not in the simulator yet

    On a real system ps shows threads one by one with it; the simulator only shows processes.

  • -T not in the simulator yet

    On a real system ps shows threads one by one with it; the simulator only shows processes.

  • -c not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • --sort needs a value not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • --cumulative not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • -V, --version not in the simulator yet

    On a real system it prints the procps version.

  • -w not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

  • --help value optional not in the simulator yet

    The option exists on a real system; for ps the simulator knows selection with a, u, x, -e, -A, -u, -U, -p and -C, the formats -f, u and -o, plus --sort and --no-headers.

Examples

From the lesson Finding and ending processes
ps aux --sort=-%cpu
USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
lerner      4711  397 39.0 3600000 3145728 ?     S    08:41  80:00 python3 expor
app         2114  1.2  1.2 412000 98304 ?        Ss   06:01   0:00 python3 app.p
lerner      3021  0.8  0.5 180000 40960 pts/0    S    08:10   0:00 python3 repor
root         901  0.1  0.0  55000  7424 ?        Ss   06:00   0:00 nginx: master
www-data     902  0.1  0.0  55000  5120 ?        S    06:00   0:00 nginx: worker
root           1  0.0  0.1  22416 13056 ?        Ss   Oct05   0:02 /sbin/init
lerner      4242  0.0  0.0   8608  5120 pts/0    Ss   09:01   0:00 bash
lerner      4712  0.0  0.0   6788  4136 pts/0    R+   09:02   0:00 ps aux --sort

Try it in the terminal

From the lesson Who eats the memory
ps aux --sort=-%mem
USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
app         5120  2.1 33.3 7340032 5242880 ?     Ss   06:02   0:00 python3 app.p
app         2210  0.4  1.3 12582912 204800 ?     Ss   06:00   0:00 java -jar rep
root           1  0.0  0.0  22416 13056 ?        Ss   Oct05   0:02 /sbin/init
lerner      4242  0.0  0.0   8608  5120 pts/0    Ss   09:29   0:00 bash
lerner      5121  0.0  0.0   6788  4136 pts/0    R+   09:30   0:00 ps aux --sort

Try it in the terminal

Where you learn it

Lessons

All commands