"리눅스 재시작"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-<source +<syntaxhighlight , -</source> +</syntaxhighlight>))
 
8번째 줄: 8번째 줄:
가장 직관적인 명령어 reboot
가장 직관적인 명령어 reboot
;명령어
;명령어
<source lang='bash'>
<syntaxhighlight lang='bash'>
reboot
reboot
</source>
</syntaxhighlight>


;실행예시
;실행예시
<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# reboot
[root@zetawiki ~]# reboot


20번째 줄: 20번째 줄:
The system is going down for reboot NOW!
The system is going down for reboot NOW!
[root@zetawiki ~]#  
[root@zetawiki ~]#  
</source>
</syntaxhighlight>
:→ 잠시후 재부팅된다.
:→ 잠시후 재부팅된다.


===방법 2: shutdown===
===방법 2: shutdown===
<source lang='bash'>
<syntaxhighlight lang='bash'>
shutdown -r now
shutdown -r now
</source>
</syntaxhighlight>


===방법 3: init===
===방법 3: init===
{{참고|런레벨}}
{{참고|런레벨}}
리눅스에서 재부팅은 런레벨을 6으로 만드는 것과 동일하다.
리눅스에서 재부팅은 런레벨을 6으로 만드는 것과 동일하다.
<source lang='bash'>
<syntaxhighlight lang='bash'>
init 6
init 6
</source>
</syntaxhighlight>


==5분 후 재시작==
==5분 후 재시작==
다음과 같이 shutdown 명령어를 사용하여 재부팅을 예약할 수 있다.
다음과 같이 shutdown 명령어를 사용하여 재부팅을 예약할 수 있다.
<source lang='bash'>
<syntaxhighlight lang='bash'>
shutdown -r +5
shutdown -r +5
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==

2021년 9월 24일 (금) 23:17 기준 최신판

리눅스 재부팅
리눅스 재시작
reboot
shutdown

1 즉시 재시작[ | ]

1.1 방법 1: reboot[ | ]

가장 직관적인 명령어 reboot

명령어
reboot
실행예시
[root@zetawiki ~]# reboot

Broadcast message from root (pts/0) (Fri Jun 29 19:33:13 2012):

The system is going down for reboot NOW!
[root@zetawiki ~]#
→ 잠시후 재부팅된다.

1.2 방법 2: shutdown[ | ]

shutdown -r now

1.3 방법 3: init[ | ]

리눅스에서 재부팅은 런레벨을 6으로 만드는 것과 동일하다.

init 6

2 5분 후 재시작[ | ]

다음과 같이 shutdown 명령어를 사용하여 재부팅을 예약할 수 있다.

shutdown -r +5

3 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}