tldr/pages/linux/top.md

24 lines
446 B
Markdown
Raw Normal View History

2015-11-24 13:37:43 +00:00
# top
> Display dynamic real-time information about running processes.
- Start top:
2015-11-24 13:37:43 +00:00
`top`
2016-06-22 12:05:00 +01:00
- Do not show any idle or zombie processes:
2015-11-24 13:37:43 +00:00
`top -i`
2016-06-22 12:05:00 +01:00
- List processes owned by given user:
2015-11-24 13:37:43 +00:00
`top -u {{user-name}}`
2016-06-22 12:05:00 +01:00
- 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:
2015-11-24 13:37:43 +00:00
`?`