加入收藏 | 设为首页 | 会员中心 | 我要投稿 大连站长网 (https://www.0411zz.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

怎样在批处理模式下运行top命令

发布时间:2021-06-09 17:29:29 所属栏目:Linux 来源:互联网
导读:副标题#e# 1) 如何在批处理模式下运行 top 命令 默认地,top命令按照 CPU 的使用率来排序输出结果,所以当你在批处理模式中运行以下命令时,它会执行同样的操作并打印前 35 行: #top-bc |head-35 top-06:41:14 up 8 days,20:24,1 user, load average:0.87,

13 root rt 0000 S 0.00.00:44.27[migration/1]

14 root 200000 S 0.00.01:22.45[ksoftirqd/1]

16 root 0-20000 S 0.00.00:00.00[kworker/1:0H]

18 root 200000 S 0.00.00:00.01[kdevtmpfs]

19 root 0-20000 S 0.00.00:00.00[netns]

20 root 200000 S 0.00.00:01.35[khungtaskd]

21 root 0-20000 S 0.00.00:00.02[writeback]

22 root 0-20000 S 0.00.00:00.00[kintegrityd]

23 root 0-20000 S 0.00.00:00.00[bioset]

24 root 0-20000 S 0.00.00:00.00[kblockd]

25 root 0-20000 S 0.00.00:00.00[md]

26 root 0-20000 S 0.00.00:00.00[edac-poller]

33 root 200000 S 0.00.01:19.07[kswapd0]

34 root 255000 S 0.00.00:00.00[ksmd]

35 root 3919000 S 0.00.00:12.80[khugepaged]

36 root 0-20000 S 0.00.00:00.00[crypto]

44 root 0-20000 S 0.00.00:00.00[kthrotld]

46 root 0-20000 S 0.00.00:00.00[kmpath_rdacd]

2) 如何在批处理模式下运行 top 命令并按内存使用率排序结果

在批处理模式中运行以下命令按内存使用率对结果进行排序:

(编辑:大连站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!