mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-10-31 14:17:56 +01:00
top: Add a better example (#921)
This commit is contained in:
parent
dd349e3863
commit
f022954eda
1 changed files with 6 additions and 2 deletions
|
@ -6,14 +6,18 @@
|
|||
|
||||
`top`
|
||||
|
||||
- Start top ignoring any idle or zombie processes:
|
||||
- Do not show any idle or zombie processes:
|
||||
|
||||
`top -i`
|
||||
|
||||
- Start top displaying only processes owned by given user:
|
||||
- List processes owned by given user:
|
||||
|
||||
`top -u {{user-name}}`
|
||||
|
||||
- List processes by PID. It takes a comma separated list. (Normally you wouldn't know PIDs off hand. This example picks the PIDs from the process name):
|
||||
|
||||
`top -p $(pgrep -d ',' {{nginx}})`
|
||||
|
||||
- Get help about interactive commands:
|
||||
|
||||
`?`
|
||||
|
|
Loading…
Reference in a new issue