記一次CentOS中top命令問題排查

系統環境

CentOS Linux release 7.2.1511 (Core)ide

procps-ng version 3.3.10ui

問題現象

登陸問題主機,切換到普通帳戶時執行top,發現top第一行,即包含有load average這一行沒法打印出來。使用root帳戶時top命令打印的都是完整,正常的~this

問題截圖以下:3d

記一次CentOS中top命令問題排查

正常且完整的截圖以下:rest

記一次CentOS中top命令問題排查

問題解決方法

臨時解決:code

在 top 的頁面,按一下 L(小寫) 鍵~blog

永久解決:it

在 top 的頁面,按一下 L(小寫) 鍵,以後按 W(大寫)~io

緣由

經過使用man top命令發現:class

  • (1)W :Write-the-Configuration-File
    This will save all of your options and toggles plus the current display mode and delay time. By issuing this command just before quitting top, you will be able
    restart later in exactly that same state.

  • (2)l - Load Avg/Uptime On (thus program name)
相關文章
相關標籤/搜索