linux shutdown & reboot command

Note:  Whether to restart the system or turn off the system, we must first run the sync command, the data in memory is written to disk

shutdown -h now

The legislation to shut down [halt]

shutdown -h 1 "hello, shutdown"

"Hello, 1 minute will be shut down."

shutdown -r now

Now restart your computer [reboot]

halt

Shutdown

reboot

Now restart your computer

sync

The memory data synchronization to disk.

 

Guess you like

Origin www.cnblogs.com/xiangyuguan/p/11299663.html