Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

37
linux/top Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# top
> Display dynamic real-time information about running processes.
> More information: <https://manned.org/top>.
- 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}})`
- Display help about interactive commands:
`?`