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

如何在批处理模式下运行top命令

发布时间:2019-10-24 21:31:01 所属栏目:Windows 来源:Magesh Maruthamuthu
导读:副标题#e# top 命令 是每个人都在使用的用于 监控 Linux 系统性能 的最好的命令。你可能已经知道 top 命令的绝大部分操作,除了很少的几个操作,如果我没错的话,批处理模式就是其中之一。 大部分的脚本编写者和开发人员都知道这个,因为这个操作主要就是用

要使用新字段进行排序, 请使用 up/down 箭头选择正确的选项,然后再按下 s 键进行排序。最后按 q 键退出此窗口。

  1. Fields Management for window 1:Def, whose current sort field is %CPU
  2. Navigate with Up/Dn, Right selects for move then or Left commits,
  3. 'd' or toggles display, 's' sets sort. Use 'q' or to end!
  4. PID = Process Id nsUTS = UTS namespace Inode
  5. USER = Effective User Name LXC = LXC container name
  6. PR = Priority RSan = RES Anonymous (KiB)
  7. NI = Nice Value RSfd = RES File-based (KiB)
  8. VIRT = Virtual Image (KiB) RSlk = RES Locked (KiB)
  9. RES = Resident Size (KiB) RSsh = RES Shared (KiB)
  10. SHR = Shared Memory (KiB) CGNAME = Control Group name
  11. S = Process Status NU = Last Used NUMA node
  12. %CPU = CPU Usage
  13. %MEM = Memory Usage (RES)
  14. TIME+ = CPU Time, hundredths
  15. COMMAND = Command Name/Line
  16. PPID = Parent Process pid
  17. UID = Effective User Id
  18. RUID = Real User Id
  19. RUSER = Real User Name
  20. SUID = Saved User Id
  21. SUSER = Saved User Name
  22. GID = Group Id
  23. GROUP = Group Name
  24. PGRP = Process Group Id
  25. TTY = Controlling Tty
  26. TPGID = Tty Process Grp Id
  27. SID = Session Id
  28. nTH = Number of Threads
  29. P = Last Used Cpu (SMP)
  30. TIME = CPU Time
  31. SWAP = Swapped Size (KiB)
  32. CODE = Code Size (KiB)
  33. DATA = Data+Stack (KiB)
  34. nMaj = Major Page Faults
  35. nMin = Minor Page Faults
  36. nDRT = Dirty Pages Count
  37. WCHAN = Sleeping in Function
  38. Flags = Task Flags
  39. CGROUPS = Control Groups
  40. SUPGIDS = Supp Groups IDs
  41. SUPGRPS = Supp Groups Names
  42. TGID = Thread Group Id
  43. OOMa = OOMEM Adjustment
  44. OOMs = OOMEM Score current
  45. ENVIRON = Environment vars
  46. vMj = Major Faults delta
  47. vMn = Minor Faults delta
  48. USED = Res+Swap Size (KiB)
  49. nsIPC = IPC namespace Inode
  50. nsMNT = MNT namespace Inode
  51. nsNET = NET namespace Inode
  52. nsPID = PID namespace Inode
  53. nsUSER = USER namespace Inode

top 命令的旧版本,请按 shift+fshift+o 键进入字段管理界面进行排序。

(编辑:济南站长网)

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