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 21:36:05 +01:00
|
|
|
# pgrep
|
|
|
|
|
|
|
|
> Find or signal process by name
|
|
|
|
|
|
|
|
- return PIDs of any running processes with a matching command string
|
|
|
|
|
|
|
|
`pgrep {{Finder}}`
|
|
|
|
|
|
|
|
- case insensitive greping
|
|
|
|
|
2014-02-10 22:18:10 +01:00
|
|
|
`pgrep -i {{fireFOx}}`
|
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 21:36:05 +01:00
|
|
|
|
2014-03-01 07:06:58 +01:00
|
|
|
- search full command line with parameters instead of just the process name
|
|
|
|
|
2014-03-01 07:18:14 +01:00
|
|
|
`pgrep -f "{{ssh root}}"`
|
2014-03-01 07:06:58 +01:00
|
|
|
|
|
|
|
- search for process run by a specific user
|
|
|
|
|
|
|
|
`pgrep -u root {{firefox}}`
|
|
|
|
|
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 21:36:05 +01:00
|
|
|
- kill all processes which match
|
|
|
|
|
2014-02-10 22:18:10 +01:00
|
|
|
`pkill -9 {{Finder}}`
|