Skip to content

Instantly share code, notes, and snippets.

View reporter123's full-sized avatar

Michael Reeves reporter123

View GitHub Profile
@reporter123
reporter123 / power.sh
Created January 18, 2012 21:06 — forked from chrisyco/power.sh
Suspend, hibernate, restart or shutdown the computer without sudo!
#!/bin/sh
# Suspend, hibernate, restart or shutdown the computer without sudo!
# by Chris Wong
# Released to the public domain.
NAME=$0
usage() {
echo "Usage: $NAME suspend|hibernate|restart|shutdown"