mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
ps: add OSX page (#10297)
* ps: add OSX page --------- Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
This commit is contained in:
parent
1c4e1d0a7a
commit
ebd48c17b0
1 changed files with 28 additions and 0 deletions
28
pages/osx/ps.md
Normal file
28
pages/osx/ps.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# 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`
|
Loading…
Add table
Reference in a new issue