Centos 8切换至命令行模式

站在高处眺望 2020-05-29

Centos 8切换至命令行模式

cat /etc/inittab 
# inittab is no longer used.
#
# ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# Ctrl-Alt-Delete is handled by /usr/lib/systemd/system/ctrl-alt-del.target
#
# systemd uses ‘targets‘ instead of runlevels. By default, there are two main targets:
#
# multi-user.target: analogous to runlevel 3
# graphical.target: analogous to runlevel 5
#
# To view current default target, run:
# systemctl get-default
#
# To set a default target, run:
# systemctl set-default TARGET.target
#查看当前系统默认
 systemctl get-default
#设置开机默认命令行界面:
 systemctl set-default multi-user.target
#设置开机默认图形化界面:
 systemctl set-default TARGET.target

相关推荐