Linux Top Command

 

Command Options

* Start default top command
top

* Display single user processes
top -u jimmy

* Show full path for commands
top -c

* Start default top command but exit after 10 refreshes
top -n 10

* Save top command result to a file
top -b -n 1 > top.txt

* Show help
Press h within running top command

* Sort by fields
Use uppercase O within running top command

* Sort by CPU
Press uppercase P within running top command

* Renice, i.e. change priority for, a process
Press r within running top command

* Set screen refresh interval
Press d within running top command

* Kill running process
Use k within running top command

* Save current top configuration
Press upper case W within running top command
Results are saved in ~/.toprc file

References

* 12 TOP Command Examples in Linux

This entry was posted in Linux and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


*

This site uses Akismet to reduce spam. Learn how your comment data is processed.