top command in linux in detail
Top command options:
Line1: 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.
Line2: Gives total number of process on the machine, number of running process, number of sleeping process, number of stopped process, number of Zambie process.
Line3: Gives you CPU details
Line4 & 5: Gives RAM and SWAP details.
Line6: To execute top command shortcuts(See below for the list of top command shortcuts ).
From Line7: 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
Line1: 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.
Line2: Gives total number of process on the machine, number of running process, number of sleeping process, number of stopped process, number of Zambie process.
Line3: Gives you CPU details
Line4 & 5: Gives RAM and SWAP details.
Line6: To execute top command shortcuts(See below for the list of top command shortcuts ).
From Line7: 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
No comments:
Post a Comment