Home Blog Archive MacOS OS X: Mac via the Terminal, put it into sleep mode

OS X: Mac via the Terminal, put it into sleep mode

  • Aug 10, 2020
  • 112
  • 0

Your Mac under OS X can not put it into sleep mode, you can force this via the Terminal. We will show you how to do it.

Mac via the Terminal, put it into sleep mode

The following procedure is only useful if the Mac denied, but also if you access remotely to the Mac. Open you first the Terminal.
  • With the command "pmset sleepnow" is set to the Mac directly into hibernation. For this purpose, the account must, however, Administrator rights have.
  • This is not the case, helping you, the following slightly longer command: osascript -e 'tell application "System Events" to sleep'
  • You have established a SSH connection to your Mac, you need the following command, you need to to your personal data: ssh USERNAME@HOSTNAME osascript -e 'tell application "Finder" to sleep'
Hibernation the Mac via Terminal
In the next practical tip we show you how to show hidden files and folders under Mac OS X.

YOU MAY ALSO LIKE

Macbook: RAM exchange

  • Tue 11, 2020
  • 103
  • 0

0 COMMENTS

LEAVE A COMMENT