Published Book on Amazon
|All of IOT Starting with the Latest Raspberry Pi from Beginner to Advanced – Volume 1|
|All of IOT Starting with the Latest Raspberry Pi from Beginner to Advanced – Volume 2|
출판된 한글판 도서
|최신 라즈베리파이(Raspberry Pi)로 시작하는 사물인터넷(IOT)의 모든 것 – 초보에서 고급까지 (상)|
|최신 라즈베리파이(Raspberry Pi)로 시작하는 사물인터넷(IOT)의 모든 것 – 초보에서 고급까지 (하)|
Original Book Contents
5.4.1 How to Terminate the System
To exit from a system running on a Linux system, you can use the following command:
■ Shutdown -- Shut down the system normally.
■ Halt -- halt the sysem.
■ Reboot -- Halt the system, shut it down, and restart the system.
This command is executed by typing the corresponding command and pressing the [Enter] key as shown in the screen below.
Figure 5‑6 Shutdown/reboot command
Shutdown is to terminate the entire system normally. It waits until all tasks that are currently running are terminated, and then terminates the entire operating system when all tasks are terminated. When the system is shut down, all operations on the system are terminated, all network connections are terminated, and the logon users are disconnected.
5.4.3 "halt" Command
"halt" essentially shuts down the entire system just like "shutdown". The difference is that "shutdown" normally shuts down the system, but "halt" forcibly shuts down the system. Forcibly terminating the system means to forcefully terminate all tasks in the current state rather than waiting for them to exit normally when there are currently running tasks.
This is a combination of the operating system's halt and boot capabilities, forcing the current operating system to shut down and rebooting the operating system. When you run this command, the basic effect is the same as above "halt" in the sense that the current system is terminated. However, in this case, there is a feature that the system is completely shut down and restarted again through the booting.