Shutdown UNIX Command

by Vivek Gite on February 6, 2008 · 1 comment

Q. How do I shutdown / poweroff a UNIX computer system from a shell prompt?

A. The halt and poweroff UNIX command line utilities write any pending information to the disks and then stop the processor. The poweroff utility has the machine remove power, if possible. So to shutdown UNIX computer type the following as root user:
halt
or
poweroff
In the following example, shutdown is being executed and is scheduled in 120 seconds. The warning message is output 2 minutes:
shutdown -y -i 5 -g 120 "===== disk replacement ====="

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

{ 1 comment… read it below or add one }

1 chand September 19, 2011

it will msg that “shutdown command not found”

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 15 + 13 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.




Previous post:

Next post: