How to Use the Linux Top command

The top command in Linux lets you monitor currently running processes and the system resources they are using. This article describes various ways in which you can use the top command to keep a check on your system activities as an administrator, much more efficiently.

View Full Post

Summary :

The top command in Linux lets you monitor currently running processes and the system resources they are using.
The top Command InterfaceIn order to run the top command, open your Ubuntu command line, the Terminal, and enter the following:$ topYou can open the Terminal either through the system Dash or the Ctrl+Alt+T shortcut.
View top Command HelpThe top command help will give you a list of options you can use to customize the output and the functions you can perform while you are running the top command.
In the following output, you can see that the command now displays the path of the running processes in the Command column:Kill a Running Process with Top CommandA very powerful feature of the top command is that you can kill running processes through it.
In case you want the top command to only run till a specific number of output refreshes, you can use the following command:$ top -n [no-of-refreshes]Example:If you enter the following command in the Terminal, the top command will stay active till 3 refreshes and it will automatically quit afterward.