博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Top 命令使用
阅读量:7126 次
发布时间:2019-06-28

本文共 1298 字,大约阅读时间需要 4 分钟。

批处理模式,支持结果重定向到一个文件

    -b : Batch mode operation
        Starts top in 'Batch mode', which could be useful for sending output from top to other programs or to a file. In this mode, top will not accept input and runs until the iterations limit
    you've set with the '-n' command-line option or until killed.
    显示的帧数
    -n : Number of iterations limit as: -n number
        Specifies the maximum number of iterations, or frames, top should produce before ending.
    两帧显示的间隔
    -d : Delay time interval as: -d ss.tt (seconds.tenths)
    Specifies the delay between screen updates, and overrides the corresponding value in one's personal configuration file or the startup default. Later this can be changed with the 'd' or 's'
interactive commands.

    top配置文件(保存当前状态为top的启动配置)    PERSONAL Configuration File(个性化配置文件)

    This file is written as '$HOME/.your-name-4-top' + 'rc'. Use the 'W' interactive command to create it or update it.

    Here is the general layout:

    global # line 1: the program name/alias notation
    " # line 2: id,altscr,irixps,delay,curwin
    per ea # line a: winname,fieldscur
    window # line b: winflags,sortindx,maxtasks
    " # line c: summclr,msgsclr,headclr,taskclr

    If the $HOME variable is not present, top will try to write the personal configuration file to the current directory, subject to permissions.

分线程查看指定进程CPU占用

    top -H -p 进程号

转载地址:http://zjhel.baihongyu.com/

你可能感兴趣的文章
初始化oracle用户以及表空间的bash shell脚本
查看>>
CDN加速用途
查看>>
AngularJS—— 指令的复用
查看>>
FreeCMS有些功能出现乱码怎么办?
查看>>
AngularJS模块化开发实例
查看>>
python--django database grammar
查看>>
PHP内核探索:Zend虚拟机
查看>>
用 namspace 隔离 DHCP 服务 - 每天5分钟玩转 OpenStack(90)
查看>>
我的友情链接
查看>>
Linux下文件描述符
查看>>
单元测试系列之5:使用unitils测试Service层
查看>>
构建FTP服务器,基于SSL,基于虚拟用户
查看>>
centos 较准时间
查看>>
HBase 优化,columnFamily和qualifierColumn的设计原则
查看>>
java中Arraylist复制方法
查看>>
5月31日云栖精选夜读丨视频编辑,4k播放,3D游戏, 阿里云图形工作站,了解一下?...
查看>>
D3.js数据展现
查看>>
css3: calc 函数,动态调整数值
查看>>
SQL2008 降级 SQL2000
查看>>
C语言 三子棋 小游戏
查看>>