HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

ps — Information about running processes. More information: <https://keith.github.io/xcode-man-pages/ps.1

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandpsinformationclirunningaboutmoreprocesses
macos

Problem

How to use the ps command: Information about running processes. More information: <https://keith.github.io/xcode-man-pages/ps.1.html>.

Solution

ps — Information about running processes. More information: <https://keith.github.io/xcode-man-pages/ps.1.html>.

List all running processes:
ps aux


List all running processes including the full command string:
ps auxww


Search for a process that matches a string:
ps aux | grep {{string}}


Get the parent PID of a process:
ps -o ppid= -p {{pid}}


Sort processes by memory usage:
ps -m


Sort processes by CPU usage:
ps -r

Code Snippets

List all running processes

ps aux

List all running processes including the full command string

ps auxww

Search for a process that matches a string

ps aux | grep {{string}}

Get the parent PID of a process

ps -o ppid= -p {{pid}}

Sort processes by memory usage

ps -m

Context

tldr-pages: osx/ps

Revisions (0)

No revisions yet.