So what we need to do is open the terminal. The complete command to program the shutdown of our Mac in 25 minutes would be: sudo shutdown -h +25 Shut down our Mac from Terminal using «halt»Īnother command that we can use to turn off our Mac is "halt", a command with which our Mac will proceed to shutdown directly as with the first option that I have shown you in this article. How to use Terminal to open the command line Before you can use it, you need to be able to find it. But if we modify the "now" property by +30, we will configure our Mac so that proceed to power off after 30 minutes. Schedule shutdown of our Mac in XX minutes from the command lineĪs we have seen in the previous section, using the now command we can directly turn off our Mac from Terminal. The complete command to be able to turn off our Mac from the command line is: sudo shutdown -h now GCC can be obtained by downloading Xcode, the smaller Command Line Tools (must have an Apple account) or. The shutdown command allows us to shut down our Mac from the command line making use of the "-h" property together with the word "now" so that the Mac request password and automatically process to shutdown. Before installing Python, youll need to install GCC. Shut down our Mac from the command line with "shutdown" 3 Shut down our Mac from Terminal using «halt».2 Schedule shutdown of our Mac in XX minutes from the command line.1 Shut down our Mac from the command line with "shutdown".
0 Comments
Leave a Reply. |