1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 23:22:07 +02:00
tldr/pages/linux/top.md
mihainsto b697be87f3
top: add sorting option (#4135)
Co-authored-by: Zlatan Vasović <zlatanvasovic@gmail.com>
2020-06-29 21:09:16 +02:00

31 lines
614 B
Markdown

# top
> Display dynamic real-time information about running processes.
- Start top:
`top`
- Do not show any idle or zombie processes:
`top -i`
- Show only processes owned by given user:
`top -u {{username}}`
- Sort processes by a field:
`top -o {{field_name}}`
- Show the individual threads of a given process:
`top -Hp {{process_id}}`
- 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):
`top -p $(pgrep -d ',' {{process_name}})`
- Get help about interactive commands:
`?`