markdown 如何在Windows 10和Linux&Mac OSX上使用Terminal / cmd关闭计时器

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 如何在Windows 10和Linux&Mac OSX上使用Terminal / cmd关闭计时器相关的知识,希望对你有一定的参考价值。

Initial Steps 
==========
*1) Press Windows Key + R.
*2) Enter CMD and press Enter.

Execute it
========
**Write command in the cmd:**
```
shutdown /s /t 3600
```
OR
```
shutdown -s -t 3600
```

***This command will shutdown your windows pc in one hour, or 3600 second which I specified in example above. You can change it as you need! It's simple.***

More details:
===========

| Text  | Action                              |
|------ |:-----------------------------------:|
| -s    | Shutdown and Power off the computer |
| -c "Comment" | Add a comment                |
| -t xx | Time before shutdown                |
|-a     |Abort                                |


*Example:*
========

  

    SHUTDOWN -s -c "Ha Ha, I Shut Down your computer!!!!" -t 60

That will Turn your computer off in 60sec and display the message.
WARNING: After you start this, you can not stop it!!!! (unless you know how..... **-a |Abort**  ;) )


----------


On Unix/Linux/Mac OSX
====================

On the terminal you should type:

**e.g. to reboot the machine immediately**

    sudo shutdown -r now

**e.g. to shutdown the machine in 60 minutes**

    sudo shutdown -h +60



*More details* [here](http://www.tweakandtrick.com/2011/09/command-prompt-tricks-hacks-codes.html).


> Written with [StackEdit](https://stackedit.io/).

以上是关于markdown 如何在Windows 10和Linux&Mac OSX上使用Terminal / cmd关闭计时器的主要内容,如果未能解决你的问题,请参考以下文章

markdown 如何修复100%磁盘使用BUG - Windows 10

markdown 在Windows 8和10用户中启动时运行批处理文件

markdown Windows 10在1分钟后睡觉

markdown 在High Sierra上安装Windows 10(macOS 10.13.2)

markdown Windows 10中模糊的OpenOffice问题

markdown Usuario Personalizado en Windows 10