系統環境
CentOS Linux release 7.2.1511 (Core)
procps-ng version 3.3.10
問題現象
登錄問題主機,切換到普通賬戶時執行top,發現top第一行,即包含有load average
這一行無法打印出來。使用root賬戶時top命令打印的都是完整,正常的~
問題截圖如下:
正常且完整的截圖如下:
問題解決方法
臨時解決:
在 top 的頁面,按一下 L(小寫) 鍵~
永久解決:
在 top 的頁面,按一下 L(小寫) 鍵,之後按 W(大寫)~
原因
通過使用man top
命令發現:
-
(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)