Linux Commands for Beginners--The top Command

来源:互联网 发布:部落冲突升级数据 编辑:程序博客网 时间:2024/05/16 08:59
      In this part I demonstrate the top command, which is useful for displaying an overview of system resources


1.command:
     
top
  description:
      display Linux tasks


interactive commands:

      s
          Change the delay between updates. 
     

          Add fields to display or remove fields from the display. 

   

       i

 Ignore idle and zombie processes. This is a toggle switch.


 k

          kill proccess




Example:
 piniheaven@fish:~$ top

   






press s to Change the delay between updates. 
     








press f to add fields to display or remove fields from the display. 
 


 Tips:in this picture,we also can see what PID,PR,%CPU,...means




here I don't want to display NI any more,so just press Shift+i,then you will see capital letter

I change to lower letter i

 








press enter,and look carefully,the column NI had been romoved









if you just want to display proccess which active at present,you can press i








here press i again to show all proccess.
if you want to kill proccess,just press k ,and then follow with its PID

原创粉丝点击