Copied to clipboard

ps

The "ps" command is used to list information about processes currently running on the system.

Example

  • List all processes: ps -A
  • Filter processes by name: ps -C <process name>
  • Filter processes by ID: ps -N <process ID>
  • Filter processes by user ID: ps -u <user ID>
  • Filter processes by username: ps -U <username>
  • Specify the process ID to display: ps -p <process ID>
  • Filter processes by terminal ID: ps -t <terminal ID>
  • Show processes without a controlling terminal: ps -x
  • List security context: ps -Z