ps

Linux · Processes · available in the simulator

What it does

Report a snapshot of the current processes.

Syntax

ps [opciones]

Options and parameters

  • aux

    BSD syntax: display all processes from all users in detailed format.

    ps aux
  • -ef

    Standard syntax: display all processes in full-format listing.

  • -u USER

    Select processes by username or user ID.

  • -e

    Select all processes.

  • -f

    Full-format listing, showing parent process and command line arguments.

    ps -ef
  • -u

    Filter by user.

    ps -u ana
  • -p

    Select process by process ID (PID).

  • --sort

    Specify sorting order by column or field.

    ps aux --sort=-%mem

Usage examples

  • ps
  • ps aux
  • ps -ef
  • ps -u ana
  • ps -ef --forest
  • ps aux --sort=-%mem
Practise ps

Related commands