Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

So i've been using poweroff command to shutdown my computer at a specific hour.

Is it okay for the hardware to do this (e.g hard drives)? Or should I use other system call?

share|improve this question
1  
As I understand it, poweroff makes sure the drives are synced and so forth, so it should not cause hardware issues. However, it does not give software a chance to terminate cleanly - you should use shutdown for this. –  user55325 Jun 24 '11 at 18:41
    
On most systems, poweroff and shutdown -h are exactly the same. Debian/Ubuntu is one of these systems. You have to call poweroff -f to skip the shutdown phase, according to the man page. –  Flimzy Jun 24 '11 at 19:34
    
What about unmounting drives? Should i worry about that? –  Fisher Jun 24 '11 at 20:47
add comment

1 Answer

poweroff is the proper way to do this. shutdown -h is exactly equivalent in Debian/Ubuntu (and most other systems).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.