Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

This question was marked as an exact duplicate of an existing question.

look: – green Sep 24 '12 at 18:05

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

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


$ 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

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