Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

krzkrzkrz

macrumors member
Original poster
Jul 29, 2010
32
1
If I wanted to shutdown via the terminal. Will "sudo shutdown -h now" be fine?

Does this shutdown the laptop safely/properly?
 
From the manpage:

Upon shutdown, all running processes are sent a SIGTERM followed by a SIGKILL. The SIGKILL will follow the SIGTERM by an intentionally indeterminate period of time. Programs are expected to take only enough time to flush all dirty data and exit.

So yes, it will perform a safe/graceful shutdown.
 
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.