Command-line shutdown options
Posted on September 9th, 1997 by shacker
If you’re already in Terminal, there’s no need to reach for the mouse to shut down via the Deskbar. Just issue the command shutdown
with one of the following flags:
shutdown -r
(restart after shutdown)
shutdown -q
(shutdown now without asking if open docs should be saved)
shutdown -d xx
(where xx is the number of seconds to wait before initating shutdown — this lets you time the shutdown, e.g. to shut down in five minutes, use shutdown -d 300
).