[Linix] Ubuntu 부팅 CLI모드/그래픽UI모드 변경방법
페이지 정보
작성자 sbLAB 댓글 0건 조회 3,493회 작성일 22-12-18 13:30본문
[현재 모드 확인]
#systemctl get-default
graphical.target
[런레벨 확인] - 0~6까지 런레벨이 확인됨.
#cd /lib/systemd/system
#ls runlevel?.target -ls
0 lrwxrwxrwx 1 root root 15 Sep 10 03:47 runlevel0.target -> poweroff.target
0 lrwxrwxrwx 1 root root 13 Sep 10 03:47 runlevel1.target -> rescue.target
0 lrwxrwxrwx 1 root root 17 Sep 10 03:47 runlevel2.target -> multi-user.target
0 lrwxrwxrwx 1 root root 17 Sep 10 03:47 runlevel3.target -> multi-user.target //CLI 텍스트 기반의 다중 사용자 모드
0 lrwxrwxrwx 1 root root 17 Sep 10 03:47 runlevel4.target -> multi-user.target
0 lrwxrwxrwx 1 root root 16 Sep 10 03:47 runlevel5.target -> graphical.target //X 윈도 다중 사용자 모드(로그인도 X윈도 GUI에서 함)
0 lrwxrwxrwx 1 root root 13 Sep 10 03:47 runlevel6.target -> reboot.target
[CLI모드로 변경]
#systemctl set-default multi-user.target
Created symlink /etc/systemd/system/default.target → /lib/systemd/system/multi-user.target.
[그래픽UI모드로 변경]
#systemctl set-default graphical.target
Removed /etc/systemd/system/default.target.
Created symlink /etc/systemd/system/default.target → /lib/systemd/system/graphical.target.
#reboot
[원리]
#cd /etc/systemd/system
#ls
lrwxrwxrwx 1 root root 36 Dec 18 13:21 default.target -> /lib/systemd/system/graphical.target
댓글목록
등록된 댓글이 없습니다.