ps Linux Command Cheatsheet

1558




ps (processes status) Linux Command is used to show information about running processes

Syntax

ps [Option(s)]

Examples

Display current shell process

$ ps
  PID TTY           TIME CMD
64639 ttys000    0:00.05 -bash

Display all processes information

ps -A

OR

ps -e

Display all processes as full-format listing

ps -ef

Display user running processes

ps -x

Display process information by PID

ps -pf 1234

Display multiple processes information by PIDs

ps -pf 1234,1235,1236

Searching for a process with name

 ps -ef | grep chrome
 ps -ef | grep java
 ps -ef | grep nodejs