1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 17:02:08 +02:00
tldr/pages/osx/ps.md
Carlos Vigil ebd48c17b0
ps: add OSX page (#10297)
* ps: add OSX page

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-07-25 22:54:43 +05:30

28 lines
448 B
Markdown

# ps
> Information about running processes.
> More information: <https://www.unix.com/man-page/osx/1/ps/>.
- 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`