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-10 20:36:05 +00:00
|
|
|
# pgrep
|
|
|
|
|
|
|
|
> Find or signal process by name
|
|
|
|
|
2015-10-22 08:31:52 +01:00
|
|
|
- return PIDs of any running processes with a matching 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-10 20:36:05 +00:00
|
|
|
|
2016-01-02 01:12:34 +00:00
|
|
|
`pgrep {{process_name}}`
|
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-10 20:36:05 +00:00
|
|
|
|
2014-03-01 06:06:58 +00:00
|
|
|
- search full command line with parameters instead of just the process name
|
|
|
|
|
2016-01-02 01:12:34 +00:00
|
|
|
`pgrep -f "{{process_name}} {{parameter}}"`
|
2014-03-01 06:06:58 +00:00
|
|
|
|
|
|
|
- search for process run by a specific user
|
|
|
|
|
2016-01-02 01:12:34 +00:00
|
|
|
`pgrep -u root {{process_name}}`
|