Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Possible Duplicate:
Difference between “halt” and “shutdown now”?

When you execute a command ( sudo halt ) Command System stops working So you execute this command on another set of computers and the result was that the freeze system

share|improve this question
    
look: askubuntu.com/a/190214/83046 –  green7 Sep 24 '12 at 18:05
add comment

marked as duplicate by Takkat, Mitch, hbdgaf, hexafraction, Mik Sep 24 '12 at 19:47

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers

sudo halt will halt the machine, and on some hardware also power it down. sudo halt -p will power off the system.

share|improve this answer
    
Thank you my dear teacher –  Farhad Sep 25 '12 at 6:15
add comment

The shutdown command can be used to shutdown or reboot the system. You also have a time option.

To shutdown the system now you can use.

$ sudo shutdown -h now

or

$ sudo shutdown -h 0 

The -h refers to halt of the system.

If you wanted the system to shutdown at a specific time you could use something like this.

$ sudo shutdown -h 12:45 "Server is going down for upgrades" 

A message will be sent out to all users at 12:30 that the system will shutdown at 12:45.

As some of the other answers have mentioned you can also use on most systems.

$ sudo halt
$ sudo poweroff

To reboot the system you can use the same commands I have mentioned just substitute the halt for reboot or the -h for an -r for example.

$ sudo shutdown -r now
share|improve this answer
    
Thank you my dear teacher –  Farhad Sep 25 '12 at 6:16
add comment

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