帮助与文档

当前位置: 主页 > 系统相关 > 正文

Ubuntu18.04系统如何操作关机重启相关命令

时间:2024/4/25 8:49:10   来源:米安网络   作者:云主机配置专家   点击:19次
orphans: 2; widows: 2; background: #ffffff;">在Ubuntu18.04系统中,如何进行关机重启?本文将针对此问题进行说明。

orphans: 2; widows: 2; background: #ffffff;">

1.shutdown

orphans: 2; widows: 2; background: #ffffff;">格式:shutdown -选项 时间

orphans: 2; widows: 2; background: #ffffff;">说明:不指定选项和参数,默认表示 1 分钟之后关闭电脑

orphans: 2; widows: 2; background: #ffffff;">常用命令示例

orphans: 2; widows: 2; background: #ffffff;"># 重新启动操作系统,其中 now 表示现在

orphans: 2; widows: 2; background: #ffffff;">$ shutdown -r now

orphans: 2; widows: 2; background: #ffffff;"># 立刻关机,其中 now 表示现在

orphans: 2; widows: 2; background: #ffffff;">$ shutdown now

orphans: 2; widows: 2; background: #ffffff;"># 系统在今天的 20:25 会关机

orphans: 2; widows: 2; background: #ffffff;">$ shutdown 20:25

orphans: 2; widows: 2; background: #ffffff;"># 系统再过十分钟后自动关机

orphans: 2; widows: 2; background: #ffffff;">$ shutdown 10

orphans: 2; widows: 2; background: #ffffff;"># 取消之前指定的关机计划

orphans: 2; widows: 2; background: #ffffff;">$ shutdown -c

orphans: 2; widows: 2; background: #ffffff;">

2.poweroff

orphans: 2; widows: 2; background: #ffffff;">立刻关机

orphans: 2; widows: 2; background: #ffffff;">

3.reboot

orphans: 2; widows: 2; background: #ffffff;">立刻重启

orphans: 2; widows: 2; background: #ffffff;">

4.init

orphans: 2; widows: 2; background: #ffffff;">

orphans: 2; widows: 2; background: #ffffff;">ubuntu系统的运行级别分为7个

orphans: 2; widows: 2; background: #ffffff;">0 代表系统停机也就是关机状态

orphans: 2; widows: 2; background: #ffffff;">1 代表单用户或者系统维护状态

orphans: 2; widows: 2; background: #ffffff;">3 代表命令行

orphans: 2; widows: 2; background: #ffffff;">5 代表图形界面

orphans: 2; widows: 2; background: #ffffff;">6 代表重新启动

orphans: 2; widows: 2; background: #ffffff;">

orphans: 2; widows: 2; background: #ffffff;">因此init 0可以用来关机

orphans: 2; widows: 2; background: #ffffff;">而init 6可以用来重启

版权保护: 本文「Ubuntu18.04系统如何操作关机重启相关命令」由 云主机配置专家 原创,转载请保留链接: https://www.miandns.com/docs/system/787.html

联系客服

0312-5535754

微信公众号