Put 'nix box to sleep from command line?

4

2

What command(s) do I type in the terminal to put the computer to sleep?

DCIndieDev

Posted 2010-12-23T21:56:10.847

Reputation: 812

Answers

4

2014 update : systemctl suspend should work on all OSs using systemd.

Old version :

/etc/acpi/sleep.sh or pm-suspend.

OneOfOne

Posted 2010-12-23T21:56:10.847

Reputation: 889

1this also works on Fedora (FC-18, FC-19): systemctl suspend – David Wilkins – 2014-05-30T18:09:56.580

I added that to the answer. – OneOfOne – 2014-05-30T18:18:18.787