Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> 關於 Linux

Linux uptime 指令實戰解讀:系統時間、運行天數、登入用戶數、1/5/15 分鐘平均負載

編輯:關於 Linux

uptime 無需 root 權限即可快速掌握系統狀態。本文詳細解讀輸出四大欄位:系統時間 (24小時制)、運行時間 (Up XX days HH:MM)、登入用戶數、平均負載 (1/5/15分鐘),並展示剛重開機 (僅顯示分鐘)、運行不足 24 小時 (僅顯示時分) 等不同階段輸出差異。負載值可換算百分比 (0.25=25%),數值越低代表系統越閒置。資料來源為 /proc/uptime,uptime 負責格式化輸出。

輸出欄位對照

欄位範例說明
系統時間14:04:39當前時間
運行時間Up 1004 days, 12:20開機至今時長
登入用戶1 user當前登入會話數
平均負載0.25, 0.25, 0.191/5/15分鐘負載

uptime 是系統巡檢最輕量指令,配合 w 可進一步查看各用戶詳細活動。

Copyright © Windows教程網 All Rights Reserved