1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/top.md

24 lines
483 B
Markdown
Raw Normal View History

2015-11-24 15:37:43 +02:00
# top
> Display dynamic real-time information about running processes.
- Start top:
2015-11-24 15:37:43 +02:00
`top`
2016-06-22 16:35:00 +05:30
- Do not show any idle or zombie processes:
2015-11-24 15:37:43 +02:00
`top -i`
- Show only processes owned by given user:
2015-11-24 15:37:43 +02:00
`top -u {{user_name}}`
2015-11-24 15:37:43 +02:00
- Show only the processes with the given PID(s), passed as a comma-separated list. (Normally you wouldn't know PIDs off hand. This example picks the PIDs from the process name):
2016-06-22 16:35:00 +05:30
`top -p $(pgrep -d ',' {{process_name}})`
2016-06-22 16:35:00 +05:30
- Get help about interactive commands:
2015-11-24 15:37:43 +02:00
`?`