2017年8月10日 星期四

CentOS7 # linux GUI2CLI and CLI2GUI mode switch command


##顯示目前系統預設運作層級
$sudo systemctl get-default
graphical.target

#切換運作層級至文字模式(runlevel 3)
 
$sudo systemctl isolate multi-user.target

#切換運作層級至 GUI 模式(runlevel 5)
$sudo systemctl isolate graphical.target

#設定開機啟動至文字模式(runlevel 3)
$sudo systemctl set-default multi-user.target

#設定開機啟動至 GUI 模式(runlevel 5)
$sudo systemctl set-default graphical.target



沒有留言:

張貼留言