Cmd Generator

ps

Display information about running processes.

ps aux

Examples

# List all processes (BSD style)
ps aux

# List all processes (standard)
ps -ef

# Full format for a specific PID
ps -f -p 1234

# Processes by user
ps -u john

# Sort by memory usage
ps aux --sort=-%mem

# Show process tree
ps aux --forest

# Processes by command name
ps -C nginx -f

# Show threads
ps -T -p 1234