shutdown command is used to halt, shutdown, reboot, restart the given system. shutdown command can be used for both Linux and Windows. In this tutorial, we will examine the shutdown r command usage.

shutdown命令用于停止,关机,重新引导,重新启动给定的系统。 shutdown命令可用于Linux和Windows。 在本教程中,我们将检查shutdown r命令的用法。

重新启动或重新启动 (Reboot or Restart)

r option is mainly used to restart or reboot the system. If we do not provide any extra option the system will reboot after 60 seconds or 1 minute. This time is used to provide the users to complete and save their works.

r选项主要用于重新启动或重新引导系统。 如果我们不提供任何其他选项,则系统将在60秒或1分钟后重启。 该时间用于为用户提供完成和保存其作品的时间。

> shutdown /r

重新启动或立即重新启动 (Reboot or Restart Immediately)

If we now that there are no other users connected to the server or we do not want to wait for 1 minute to reboot we can use /t 0 option. This option means restart or reboot the system immediately with 0 second wait time.

如果现在没有其他用户连接到服务器,或者我们不想等待1分钟重新启动,则可以使用/t 0选项。 此选项意味着等待时间为0秒,立即重新启动或重新引导系统。

> shutdown /r /t 0

在指定时间重启 (Reboot At Specified Time)

We may want to reboot after work or after time passed. If we want to reboot at specified time we can use /t option with a time value in seconds. In this example, we will restart the system after 1 hour which is equal to 3600 seconds.

我们可能要在工作后或经过一段时间后重新启动。 如果要在指定时间重新启动,可以使用/t选项,并带有以秒为单位的时间值。 在此示例中,我们将在1小时(等于3600秒)后重新启动系统。

> shutdown /r /t 3600

Restart after 10 minutes

10分钟后重新启动

> shutdown /r /t 600

Restart after 1 day

1天后重启

> shutdown /r /t 14400

Restart after 8 hours

8小时后重启

> shutdown /r /t 4800

重新启动指定的服务器或计算机 (Reboot Specified Server or Computer)

Up to now we have restarted or rebooted given local system or server. We can also reboot or restart a remote server or computer by providing its hostname or IP address. We will use \\ with the server hostname or IP address. In this example, we will reboot the host named POFTUT1.

到目前为止,我们已经重启或重启了给定的本地系统或服务器。 我们还可以通过提供其主机名或IP地址来重启或重启远程服务器或计算机。 我们将在服务器主机名或IP地址中使用\\ 。 在此示例中,我们将重新引导名为POFTUT1的主机。

> shutdown /r \\POFTUT1

取消重启 (Cancel Reboot)

After issuing a reboot or restart command we may need to cancel the reboot or restart operation. We can use /a option which will cancel or abort current issued shutdown operations like restart and reboot.

发出重新启动或重新启动命令后,我们可能需要取消重新启动或重新启动操作。 我们可以使用/a选项来取消或中止当前发出的shutdown操作,例如重新启动和重新启动。

> shutdown /a
.u739bd42aeedc034a3138b344396343c1 , .u739bd42aeedc034a3138b344396343c1 .postImageUrl , .u739bd42aeedc034a3138b344396343c1 .centered-text-area { min-height: 80px; position: relative; } .u739bd42aeedc034a3138b344396343c1 , .u739bd42aeedc034a3138b344396343c1:hover , .u739bd42aeedc034a3138b344396343c1:visited , .u739bd42aeedc034a3138b344396343c1:active { border:0!important; } .u739bd42aeedc034a3138b344396343c1 .clearfix:after { content: ""; display: table; clear: both; } .u739bd42aeedc034a3138b344396343c1 { display: block; transition: background-color 250ms; webkit-transition: background-color 250ms; width: 100%; opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #ECF0F1; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -o-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); } .u739bd42aeedc034a3138b344396343c1:active , .u739bd42aeedc034a3138b344396343c1:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #D35400; } .u739bd42aeedc034a3138b344396343c1 .centered-text-area { width: 100%; position: relative; } .u739bd42aeedc034a3138b344396343c1 .ctaText { border-bottom: 0 solid #fff; color: #3498DB; font-size: 16px; font-weight: bold; margin: 0; padding: 0; text-decoration: underline; } .u739bd42aeedc034a3138b344396343c1 .postTitle { color: #27AE60; font-size: 16px; font-weight: 600; margin: 0; padding: 0; width: 100%; } .u739bd42aeedc034a3138b344396343c1 .ctaButton { background-color: #e6e6e6!important; color: #3498DB; border: none; border-radius: 3px; box-shadow: none; font-size: 14px; font-weight: bold; line-height: 26px; moz-border-radius: 3px; text-align: center; text-decoration: none; text-shadow: none; width: 80px; min-height: 80px; background: url(https://www.poftut.com/wp-content/plugins/intelly-related-posts/assets/images/simple-arrow.png)no-repeat; position: absolute; right: 0; top: 0; } .u739bd42aeedc034a3138b344396343c1:hover .ctaButton { background-color: #E67E22!important; } .u739bd42aeedc034a3138b344396343c1 .centered-text { display: table; height: 80px; padding-left: 18px; top: 0; } .u739bd42aeedc034a3138b344396343c1 .u739bd42aeedc034a3138b344396343c1-content { display: table-cell; margin: 0; padding: 0; padding-right: 108px; position: relative; vertical-align: middle; width: 100%; } .u739bd42aeedc034a3138b344396343c1:after { content: ""; display: block; clear: both; }

LEARN MORE  Linux Shutdown and Reboot Command Tutorial with Examples

.u739bd42aeedc034a3138b344396343c1 , .u739bd42aeedc034a3138b344396343c1 .postImageUrl , .u739bd42aeedc034a3138b344396343c1 .centered-text-area { min-height: 80px; position: relative; } .u739bd42aeedc034a3138b344396343c1 , .u739bd42aeedc034a3138b344396343c1:hover , .u739bd42aeedc034a3138b344396343c1:visited , .u739bd42aeedc034a3138b344396343c1:active { border:0!important; } .u739bd42aeedc034a3138b344396343c1 .clearfix:after { content: ""; display: table; clear: both; } .u739bd42aeedc034a3138b344396343c1 { display: block; transition: background-color 250ms; webkit-transition: background-color 250ms; width: 100%; opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #ECF0F1; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -o-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); } .u739bd42aeedc034a3138b344396343c1:active , .u739bd42aeedc034a3138b344396343c1:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #D35400; } .u739bd42aeedc034a3138b344396343c1 .centered-text-area { width: 100%; position: relative; } .u739bd42aeedc034a3138b344396343c1 .ctaText { border-bottom: 0 solid #fff; color: #3498DB; font-size: 16px; font-weight: bold; margin: 0; padding: 0; text-decoration: underline; } .u739bd42aeedc034a3138b344396343c1 .postTitle { color: #27AE60; font-size: 16px; font-weight: 600; margin: 0; padding: 0; width: 100%; } .u739bd42aeedc034a3138b344396343c1 .ctaButton { background-color: #e6e6e6!important; color: #3498DB; border: none; border-radius: 3px; box-shadow: none; font-size: 14px; font-weight: bold; line-height: 26px; moz-border-radius: 3px; text-align: center; text-decoration: none; text-shadow: none; width: 80px; min-height: 80px; background: url(https://www.poftut.com/wp-content/plugins/intelly-related-posts/assets/images/simple-arrow.png)no-repeat; position: absolute; right: 0; top: 0; } .u739bd42aeedc034a3138b344396343c1:hover .ctaButton { background-color: #E67E22!important; } .u739bd42aeedc034a3138b344396343c1 .centered-text { display: table; height: 80px; padding-left: 18px; top: 0; } .u739bd42aeedc034a3138b344396343c1 .u739bd42aeedc034a3138b344396343c1-content { display: table-cell; margin: 0; padding: 0; padding-right: 108px; position: relative; vertical-align: middle; width: 100%; } .u739bd42aeedc034a3138b344396343c1:after { content: ""; display: block; clear: both; }

了解更多有关Linux关闭和重新引导命令教程的示例

翻译自: https://www.poftut.com/how-to-use-shutdown-r-command-in-windows-to-reboot-and-shutdown-computer/

如何在Windows中使用“ shutdown r”命令重新启动和关闭计算机?相关推荐

  1. 如何在Windows中安装Python?

    如何在Windows中安装Python? 1. Python的安装 官网下载:https://www.python.org/downloads/windows/ 点开上面的链接,会发现有很多版本. 首 ...

  2. cmd查看php服务器,如何在windows中查看php版本

    如何在windows中查看php版本 发布时间:2020-06-25 15:19:17 来源:亿速云 阅读:155 作者:Leah 如何在windows中查看php版本?针对这个问题,这篇文章详细介绍 ...

  3. 如何在Windows中的命令提示符下删除特定目录中的文件/子文件夹

    本文翻译自:How to delete files/subfolders in a specific directory at the command prompt in Windows Say, t ...

  4. 禁用键盘快捷键_如何在Windows中使用键盘快捷键临时禁用键盘

    禁用键盘快捷键 If you've got a pet or small child, you know that an unguarded keyboard can spell disaster-o ...

  5. 好系统教你如何在Windows中更改文件夹的图标

    如何在Windows中更改文件夹的图标 浏览到要更改其图标的文件夹的位置,或创建一个新文件夹. 右键单击该文件夹,然后从出现的下拉菜单底部选择"属性". 在文件夹属性菜单中,选择自 ...

  6. 如何在windows中添加smb共享

    如何在windows中添加smb共享 打开我的电脑 然后在电脑名字上点击鼠标右键,选择映射网络驱动器 打开后界面如图,输入开启smb共享的位置 打开我的电脑 在新版的操作系统中可能叫做这台电脑,打开后 ...

  7. 如何在Windows中修改您的名字和公司名?

    如何在Windows中修改您的名字和公司名? 安装Windows时,安装程序会提示输入注册用户的名字,所在公司等信息.安装完毕后,这些信息可以通过在打开我的电脑的" 属性"对话框中 ...

  8. 关于如何在Windows中让电脑如Mac般变为黑夜模式(想让Chrome变成黑夜模式也行得通)

    关于如何在Windows中让电脑如Mac般变为黑夜模式(想让Chrome变成黑夜模式也行得通) 简单异常.右击,选择个性化,点击颜色,下拉,找到"选择默认应用模式",点击" ...

  9. 如何在Windows中使用DIR命令

    The DIR command is a powerful Windows Command Prompt function that lists all files and subdirectorie ...

最新文章

  1. 超详细单机版搭建hadoop环境图文解析
  2. TCP/IP模型各层的作用和设备
  3. Leetcode-435:无重叠区间
  4. 消息摘要算法示例(python和go)
  5. 北邮OJ 1005. 16校赛-Hawei Learning C
  6. 利用 WebService实现远程服务器文件的上传和下载
  7. python贪吃蛇设计目标_基于 pygame 设计贪吃蛇游戏
  8. java 生成客户端代码_swagger-codegen生成java客户端代码
  9. Kubernetes搭建可扩展的微服务系统
  10. 公司这个月要同时完成好多项目!!!
  11. 多线程测试时的辅助类--CountDownLatch
  12. python3清屏命令_python3.4中清屏的处理方法
  13. Xcode 模拟器Simulator手动下载(iOS 8 - iOS 12)
  14. 你们要的简历模板来了
  15. 抖音数据统计_抖音账号数据分析
  16. excel中vba操作文件
  17. ckfinder 配置 php,CKEditor4+CKFinder3(php版本)安装及配置方法
  18. 怎么提升效率?衡量指标又是是什么?
  19. 学期计算机教学工作反思,小学信息技术老师一月工作反思总结教育教学笔记
  20. Elasticserch 5.6到Elasticsearch7.11跨版本升级踩坑记录

热门文章

  1. 聚点定理证明其他实数完备性定理
  2. 数据备份与恢复最省心方案分享
  3. 【原创】PHP超时处理全面总结
  4. Oracle存储过程案例详解
  5. Oracle----综合实战:数据库设计分析实例
  6. 服务器硬件组成及分级
  7. tb 开拓者 跨周期应用
  8. Linux基础(B站视频笔记—— Python教程_600集Python从入门到精通教程)
  9. 将IEEE参考文献导入Endnote的方法
  10. C#毕业设计——基于C#+asp.net+sqlserver的汽车销售管理系统设计与实现(毕业论文+程序源码)——汽车销售管理系统