I am new in linux, I want to know the exact command to shut down a red hat linux server.

I was using init 0. but some one said its not the proper method to shut down my linux server.

If not which is the exact command

Thanks

link|improve this question
feedback

6 Answers

up vote 3 down vote accepted
$ shutdown -h now

or

$ telinit 0
link|improve this answer
init and telinit do exactly the same when invoked by user. – grawity Jan 26 '10 at 14:32
feedback

To reboot from the prompt, type:

$ shutdown -r now

Or, if you want to exit from your system and turn off your machine, type:

$ shutdown -h now

.. via manuals.

link|improve this answer
You beat my answer by 29 secs :D – Bolek Tekielski Jan 26 '10 at 10:50
there is also "reboot" – Joe Internet Jan 26 '10 at 11:30
feedback

shutdown -h now

link|improve this answer
feedback

Try poweroff .

link|improve this answer
feedback

I use this, very simple.

poweroff
link|improve this answer
feedback

also if those don't work:

halt
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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