mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
Added top command for Linux and OSX
This commit is contained in:
parent
6f11b8fedc
commit
3da7f5cc0c
3 changed files with 51 additions and 1 deletions
File diff suppressed because one or more lines are too long
23
pages/linux/top.md
Normal file
23
pages/linux/top.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
# top
|
||||
|
||||
> Display dynamic real-time information about running processes.
|
||||
|
||||
- Start top
|
||||
|
||||
`top`
|
||||
|
||||
- Start top ignoring any idle or zombie processes
|
||||
|
||||
`top -i`
|
||||
|
||||
- Start top displaying only processes owned by given user
|
||||
|
||||
`top -u {{user-name}}`
|
||||
|
||||
- Run top in batch (logging) mode and update information 5 times
|
||||
|
||||
`top -b -n 5`
|
||||
|
||||
- Get help about interactive commands
|
||||
|
||||
`?`
|
27
pages/osx/top.md
Normal file
27
pages/osx/top.md
Normal file
|
@ -0,0 +1,27 @@
|
|||
# top
|
||||
|
||||
> Display dynamic real-time information about running processes.
|
||||
|
||||
- Start top, all options are available in the interface
|
||||
|
||||
`top`
|
||||
|
||||
- Start top sorting processes by internal memory size (default order - process ID)
|
||||
|
||||
`top -o mem`
|
||||
|
||||
- Start top sorting processes first by CPU, then by running time
|
||||
|
||||
`top -o cpu -O time`
|
||||
|
||||
- Start top displaying only processes owned by given user
|
||||
|
||||
`top -user {{user-name}}`
|
||||
|
||||
- Run top in logging (batch) mode and update information 5 times
|
||||
|
||||
`top -l 5`
|
||||
|
||||
- Get help about interactive commands
|
||||
|
||||
`?`
|
Loading…
Add table
Reference in a new issue