Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Linux 快速查看目前執行等級:who -r 一鍵搞定

編輯:Linux 系統常見問題解答

Red Hat / CentOS 系列系統查看當前 runlevel:

$ who -r
         run-level 3  2024-01-15 10:30

輸出中 run-level 後的數字即為目前執行等級 (0 關機、1 單用戶、2 多用戶無網路、3 多用戶有網路、5 圖形介面、6 重啟)。

補充: runlevel 指令亦可顯示前一個與目前等級 (如 N 3)。Systemd 系統 (CentOS 7+) 建議用 systemctl get-default 查預設目標,systemctl list-units --type=target 看啟動目標。

Copyright © Windows教程網 All Rights Reserved