Linux之关机和重启

注意:

    重启或关机之前,运行sync命令,把当前内存中的数据写入磁盘,防止数据丢失。


关机:

    shutdown -h now

    halt

    poweroff

    init 0


重启:

    shutdown -r now

    reboot

    init 6

猜你喜欢

转载自blog.csdn.net/sanmao123456_/article/details/80371261