sudo shutdown -h now

Discussion in 'MacBook Pro' started by krzkrzkrz, Jan 4, 2015.

  1. krzkrzkrz macrumors member

    Joined:
    Jul 29, 2010
    #1
    If I wanted to shutdown via the terminal. Will "sudo shutdown -h now" be fine?

    Does this shutdown the laptop safely/properly?
     
  2. dyt1983, Jan 4, 2015
    Last edited: Jun 1, 2015

    dyt1983 macrumors 65816

    Joined:
    May 6, 2014
    Location:
    USA USA USA
    #2
    edit: To remove personally identifying info not relevant to the conversation.
     
  3. leman macrumors 604

    Joined:
    Oct 14, 2008
    #3
    From the manpage:

    So yes, it will perform a safe/graceful shutdown.
     
  4. mfram macrumors 65816

    Joined:
    Jan 23, 2010
    Location:
    San Diego, CA USA
    #4
    What it won't do is allow you to save your work in any open applications. You may lose work if you have any documents open, for example. But the filesystem caches should be flushed.
     

Share This Page