top命令的字段信息及交互命令
来源:互联网 发布:js设置时间弹出界面 编辑:程序博客网 时间:2024/04/29 12:53
1.字段信息
D=不可中断的睡眠状态
R=运行
S=睡眠
T=跟踪/停止
Z=僵尸进程xCOMMAND命令名/命令行yWCHAN若该进程在睡眠,则显示睡眠中的系统函数名zFlags任务标志,参考 sched.h
默认情况下仅显示比较重要的 PID、USER、PR、NI、VIRT、RES、SHR、S、%CPU、%MEM、TIME+、COMMAND 列。
2.交互命令Help for Interactive Commands - procps version 3.2.8
--交互命令标题版本
Window 1:Def: Cumulative mode Off. System: Delay 3.0 secs; Secure mode Off.
--显示当前top窗口的一些摘要信息。top可以提供四个监控窗口,每个窗口可以进行不同的配置。
Z,B Global: 'Z' change color mappings; 'B' disable/enable bold
--全局变量。Z定义颜色配置,B定义黑体显示
l,t,m Toggle Summaries: 'l' load avg; 't' task/cpu stats; 'm' mem info
--统计信息区各类信息的显示开关。l 负载 、t 任务和cpu信息、m 内存信息
1,I Toggle SMP view: '1' single/separate states; 'I' Irix/Solaris mode
--多处理器开关。1 分cpu显示/整体显示切换,I暂时未知
f,o . Fields/Columns: 'f' add or remove; 'o' change display order
--f 对字段信息的增删操作,显示关心的字段,删除多余的字段;o修改字段的显示顺序,比如将RES、CODE、DATA放在一起,方便查看
F or O . Select sort field
--F、O设定排序字段,这个功能比较鸡肋,可以使用<和>来代替
<,> . Move sort field: '<' next col left; '>' next col right
--排序字段左移或由移。< 使用当前排序字段左边的字段进行排序,>则相反
R,H . Toggle: 'R' normal/reverse sort; 'H' show threads
--R 升序/降序排序切换开关,H 显示线程
c,i,S . Toggle: 'c' cmd name/line; 'i' idle tasks; 'S' cumulative time
--c,显示命令行信息,很有用,比如显示java进程的启动信息;i,忽略闲置和僵死进程;S 切换到累计模式,累计模式什么作用未知
x,y . Toggle highlights: 'x' sort field; 'y' running tasks
--x,将排序字段高亮显示;y 将当前运行任务高亮显示(这两个命令得在彩色模式下才能发挥作用)
z,b . Toggle: 'z' color/mono; 'b' bold/reverse (only if 'x' or 'y')
--z 彩色模式/黑白模式切换开关;b 黑体/背光切换
u . Show specific user only
--u 查看指定用户的进程,输入为空的话则查看所有进程
n or # . Set maximum tasks displayed
--n 设置最多显示多少任务
k,r Manipulate tasks: 'k' kill; 'r' renice
--k 杀死进程;r 重设 nice值
d or s Set update interval
--d or s 设置刷新间隔,单位为秒,默认刷新间隔为3
W Write configuration file
--将当前配置写入到配置文件 ~/.toprc
q Quit
--q 退出
( commands shown with '.' require a visible task display window )
Press 'h' or '?' for help with Windows,
any other key to continue
Help for Windows / Field Groups - "Current Window" = 1:Def
. Use multiple windows, each with separate config opts (color,fields,sort,etc)
. The 'current' window controls the Summary Area and responds to your Commands
. that window's task display can be turned Off & On, growing/shrinking others
. with NO task display, some commands will be disabled ('i','R','n','c', etc)
until a different window has been activated, making it the 'current' window
. You change the 'current' window by: 1) cycling forward/backward; 2) choosing
a specific field group; or 3) exiting the color mapping screen
. Commands available anytime -------------
A . Alternate display mode toggle, show Single / Multiple windows
--全屏/多屏模式切换开关
G . Choose another field group and make it 'current', or change now
by selecting a number from: 1 =Def; 2 =Job; 3 =Mem; or 4 =Usr
--多屏间切换
. Commands requiring 'A' mode -------------
g . Change the Name of the 'current' window/field group
--重命名窗口
* a , w . Cycle through all four windows: 'a' Forward; 'w' Backward
--多屏间进行切换
* - , _ . Show/Hide: '-' Current window; '_' all Visible/Invisible
The screen will be divided evenly between task displays. But you can make
some larger or smaller, using 'n' and 'i' commands. Then later you could:
* = , + . Rebalance tasks: '=' Current window; '+' Every window
--恢复默认显示。=只恢复当前窗口,+恢复所有窗口
(this also forces the current or every window to become visible)
In 'A' mode, '*' keys are your essential commands. Please try the 'a' and 'w'
commands plus the 'G' sub-commands NOW. Press <Enter> to make 'Current'
- top命令的字段信息及交互命令
- top命令展示的信息
- top命令是什么?输出的信息是什么意思?
- top使用_交互命令
- free命令和top命令显示的信息的意义
- mysql 字段信息命令
- TOP命令的解析及使用
- Android中的top命令 个字段的意思
- top执行过程中的一些交互命令
- top 命令显示 CPU 的信息是从哪里获取?
- Linux top 命令各字段解释
- Linux top 命令各字段解释
- Linux top 命令各字段解释 .
- linux top 命令各字段含义
- TOP命令学习及问题
- top命令的使用
- RedHat的top命令
- top命令的学习
- JDBC
- 6410触摸屏驱动分析(s3c-ts.c)(Linux)(分析)
- 如果UITableView中某一行不允许点击变蓝色如何设置?
- service(服务绑定)
- 服务器返回的json数据,通过本地解析调用SBjson的类
- top命令的字段信息及交互命令
- hdu 1179 |hdu 2063
- android面试题总结加强再加强版(一)
- TCP和http学习笔记(入门概念)
- 第二周C#上机实验(二)求取字母的ASCII值
- 安卓巴士-《移动开发者周刊》第九期
- Cygwin中修改路径显示问题
- 操作系统——分布式系统
- ios 页面跳转之间传递数据----通过delegate