I want to type shutdown push enter and my computer shuts down

Discussion in 'macOS' started by dmmcintyre3, Apr 16, 2009.

  1. dmmcintyre3 macrumors 68020

    Mar 4, 2007
    when I type sudo shutdown I get this
    usage: shutdown [-] [-h [-u] [-n] | -r [-n] | -s | -k] time [warning-message ...]

    I want to just type sudo shutdown and my computer shuts down.
  2. SHADO macrumors 6502a


    Aug 14, 2008
    Why not just hit the power button then hit enter? Seems easier to me...
  3. mmulin macrumors 6502

    Jun 22, 2006
    shutdown -r now -> restarts
    shutdown -h now -> powers down
    man shutdown -> gives you the shutdown manual
    man <any command> -> gives you the unix manual to almost any command

    reboot -> same as 'shutdown -r' but won't use launchd. just send the kill signal to running processes
    halt -> same as 'shutdown -h' but <see 'reboot'>
  4. dmmcintyre3 thread starter macrumors 68020

    Mar 4, 2007
    SSH is not a GUI
  5. MacBoobsPro macrumors 603


    Jan 10, 2006
    Obviously you are using the terminal so this may not be useful to you but I shutdown my mac using the bottom left CTRL button and the top right Eject keys, which brings up the shutdown then just tap enter to select shutdown. There is an additional key you can press at the same time as ctrl and eject that will immediately shutdown your mac without the warning but I cant remember what it is (probably Command).
  6. Consultant macrumors G5


    Jun 27, 2007
  7. dmmcintyre3 thread starter macrumors 68020

    Mar 4, 2007
    Becuase this is to be done remotely if I forget to turn the computer off and I will be away for a long time. I usually leave my computer on 24/7 if I am home. Sleep is only used on battery.
  8. J the Ninja macrumors 68000

    Jul 14, 2008
    You know there is very minimal difference in power use between sleep and off, right? And no difference between off and hibernate? You can sleep it through SSH using one of these two:

    pmset sleepnow
    shutdown -s now

    Also, this one changes a setting so telling the machine to make it sleep actually makes it hibernate:

    sudo pmset -a hibernatemode 1
  9. dmmcintyre3 thread starter macrumors 68020

    Mar 4, 2007
    Thanks I could use this for other things. Too bad there isn't a command that will eject the power cable for thunderstorms

Share This Page