리눅스

 

 

 

shutodwn -P

shutodown -r 23:00

shutodwn -c  예약 취소

halt -p

모니터 화면 변경

#chvt 1

#chvt 2

#chvt 3

#shutdown -k +15 
15분후에 서버가 꺼진다고 메시지를 보낸다.
그러나 메시지만 보내고 실제로는 꺼지지는 않는다.


 

init 0~ 6

[root@localhost ~]# ls /lib/systemd/system/runlevel?.target
/lib/systemd/system/runlevel0.target  /lib/systemd/system/runlevel4.target
/lib/systemd/system/runlevel1.target  /lib/systemd/system/runlevel5.target
/lib/systemd/system/runlevel2.target  /lib/systemd/system/runlevel6.target
/lib/systemd/system/runlevel3.target
[root@localhost ~]# ls -l  /lib/systemd/system/runlevel?.target
lrwxrwxrwx. 1 root root 15  2월 27 22:38 /lib/systemd/system/runlevel0.target -> poweroff.target
lrwxrwxrwx. 1 root root 13  2월 27 22:38 /lib/systemd/system/runlevel1.target -> rescue.target
lrwxrwxrwx. 1 root root 17  2월 27 22:38 /lib/systemd/system/runlevel2.target -> multi-user.target
lrwxrwxrwx. 1 root root 17  2월 27 22:38 /lib/systemd/system/runlevel3.target -> multi-user.target
lrwxrwxrwx. 1 root root 17  2월 27 22:38 /lib/systemd/system/runlevel4.target -> multi-user.target
lrwxrwxrwx. 1 root root 16  2월 27 22:38 /lib/systemd/system/runlevel5.target -> graphical.target
lrwxrwxrwx. 1 root root 13  2월 27 22:38 /lib/systemd/system/runlevel6.target -> reboot.target
[root@localhost ~]# 

 

 

 

 


[root@localhost ~]# ls -l /etc/systemd/system/default.target
lrwxrwxrwx. 1 root root 36  2월 27 23:03 /etc/systemd/system/default.target -> /lib/systemd/system/graphical.target
[root@localhost ~]# ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target

텍스트 모드 변경됨

 

 

 

 

 

linux

 

about author

PHRASE

Level 60  머나먼나라

As I grew richer, I grew more ambitious. (돈이 많아질수록 더 욕심이 난다.)

댓글 ( 4)

댓글 남기기

작성
  •    
  •    
  •