2013-12-08 12:56:16 +04:00
|
|
|
# ps
|
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
> Information about running processes.
|
2013-12-08 12:56:16 +04:00
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- List all running processes:
|
2013-12-08 12:56:16 +04:00
|
|
|
|
|
|
|
`ps aux`
|
A bunch of new pages:
common/: dig, gzip, rm, sort, zfs, zpool
linux/: apt-get, shutdown
osx/: airport, caffeinate, diskutil, networksetup open, pgrep, qlmanage, say, shutdown, sysctl, system_profiler
Edits to existing pages:
curl: Added simple download example
find: Added iname and size exmaples
grep: Edited -c description
ps: Added wide lines example
ssh: edited -D description, added simple port forwarding example
unzip: added list option
2014-02-11 00:36:05 +04:00
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- List all running processes including the full command string:
|
A bunch of new pages:
common/: dig, gzip, rm, sort, zfs, zpool
linux/: apt-get, shutdown
osx/: airport, caffeinate, diskutil, networksetup open, pgrep, qlmanage, say, shutdown, sysctl, system_profiler
Edits to existing pages:
curl: Added simple download example
find: Added iname and size exmaples
grep: Edited -c description
ps: Added wide lines example
ssh: edited -D description, added simple port forwarding example
unzip: added list option
2014-02-11 00:36:05 +04:00
|
|
|
|
|
|
|
`ps auxww`
|
2014-03-24 03:52:15 +04:00
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- Search for a process that matches a string:
|
2014-03-24 03:52:15 +04:00
|
|
|
|
|
|
|
`ps aux | grep {{string}}`
|
2017-11-23 14:53:54 +03:00
|
|
|
|
2017-11-23 15:01:50 +03:00
|
|
|
- List all processes of the current user in extra full format:
|
2017-11-23 14:53:54 +03:00
|
|
|
|
2017-11-24 15:04:02 +03:00
|
|
|
`ps --user $(id -u) -F`
|
2017-11-23 14:53:54 +03:00
|
|
|
|
2017-11-24 14:50:38 +03:00
|
|
|
- List all processes of the current user as a tree:
|
2017-11-23 14:53:54 +03:00
|
|
|
|
2017-11-24 15:04:02 +03:00
|
|
|
`ps --user $(id -u) f`
|
2018-01-16 00:36:37 +03:00
|
|
|
|
2018-01-16 00:51:45 +03:00
|
|
|
- Get the parent pid of a process:
|
2018-01-16 00:36:37 +03:00
|
|
|
|
|
|
|
`ps -o ppid= -p {{pid}}`
|