snippetbashTip
ps — Information about running processes. More information: <https://keith.github.io/xcode-man-pages/ps.1
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 auxList all running processes including the full command string:
ps auxwwSearch 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 -mSort processes by CPU usage:
ps -rCode Snippets
List all running processes
ps auxList all running processes including the full command string
ps auxwwSearch 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 -mContext
tldr-pages: osx/ps
Revisions (0)
No revisions yet.