Linux shutdown command shutdown

  
 

shutdown1. The role of the shutdown command is to shut down the computer, its usage rights are super users.

2. Format shutdown [-h][-i][-k][-m][-t]

3. Important parameters -t: before changing to other run levels , tell the init program how long it will shut down. -k: Does not really shut down, just sends a warning signal to each registrant. -h: Turn off the power after shutting down. -c:cancel current process cancels the shutdown program currently being executed. So of course there is no time parameter for this option, but you can enter a message for explanation, and this message will be sent to each user. -F: Force fsck when restarting the computer. -time: Set the time before shutdown. -m: Change the system to single-user mode. -i: Displays system information when shutting down.

4. Command Description The shutdown command safely shuts down the system. Some users will shut down the Linux system by directly disconnecting the power supply, which is very dangerous. Because Linux is different from Windows
, it runs many processes in the background, so forcibly shutting down may result in data loss of the process, making the system unstable, and even in some systems, the hardware device will be damaged. ). Use the shutdown command before the system is shut down. The system administrator will notify all logged-in users that the system is shut down, and the login command will be frozen, that is, the new user can no longer log in.

Copyright © Windows knowledge All Rights Reserved