码迷,mamicode.com
首页 > 其他好文 > 详细

top的几种用法

时间:2015-03-10 01:43:12      阅读:120      评论:0      收藏:0      [点我收藏+]

标签:linux top

Press (Shift+O) to Sort field via field letter, for example press ‘a‘ letter to sort process with PID (Process ID).


Type any key to return to main top window with sorted PID order as shown in below screen. Press ‘q‘ to quit exit the window.


Use top command with ‘u‘ option will display specific User process details.


Press ‘z‘ option in running top command will display running process in color which may help you to identified running process easily.


Press ‘c‘ option in running top command, it will display absolute path of running process.


By default screen refresh interval is 3.0 seconds, same can be change pressing ‘d‘ option in running top command and change it as desired as shown below.


You can kill a process after finding PID of process by pressing ‘k‘ option in running top command without exiting from top window as shown below.


You can use ‘r‘ option to change the priority of the process also called Renice.


Press (Shift+W) to save the running top command results under /root/.toprc.



本文出自 “Linux和网络” 博客,谢绝转载!

top的几种用法

标签:linux top

原文地址:http://haohaozhang.blog.51cto.com/9176600/1618778

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!