温馨提示×

ubuntu中shutdown命令的作用是什么

小亿
83
2024-03-02 16:28:29
栏目: 智能运维

在Ubuntu中,shutdown命令用于关闭或重启系统。可以使用不同的参数来指定关闭或重启的方式,例如:

  • shutdown -h now:立即关闭系统
  • shutdown -r now:立即重启系统
  • shutdown -h +5:5分钟后关闭系统
  • shutdown -r +10:10分钟后重启系统

在使用shutdown命令时,需要以超级用户或root用户身份运行。

0