March 22, 2016

Linux TOP command explained

Top command options:

https://youtu.be/rloSW2TGGjU

Line 1: Gives System present time, up time of the machine, number of users logged in, Load average on system at 1, 5, 15 min interval. Please ignore the values which I mention in the video, which mention load average as 5,10 and 15mins.

Line 2: Gives total number of process on the machine, number of running process, number of sleeping process, number of stopped process, number of Zombie process.

Line 3: Gives you CPU details

Line 4 & 5: Gives RAM and SWAPdetails.

Line 6: To execute top command shortcuts(See below for the list of top command shortcuts ).

From Line 7: dynamically displayed top process results.

Top commands 

shortcuts:

Note: Press below shortcuts at the time of running top command.

l âTo display or to hide load average line
t âTo display or to hide task/cpu line
1 âTo display or hide all other CPUâs
m âto display or to hide RAM and SWAP details
s âTo change the time interval for updating top results(value is in secâs)
R âTo sort by PID number
u â Press u then username to get only that user process details
P âTo sort by CPU utilization
M âTo sort by RAM utilization
c âTo display or hide command full path
r âTo renice a process, press r then the PID no then the renice value to renice a process.
k âTo kill a process, press k then PID number then enter to kill a process
w âTo save the modified configuration permanently.
q âTo quit the top command.
h âfor getting help on top command

Please share your thoughts about this video at the comments section.

 

Click Here!