FreeBSD or BSD reboot and shutdown system

by Vivek Gite on August 22, 2006 · 4 comments

Q. How do I reboot or shutdown BSD (FreeBSD) based system. Command shutdown -h 0 is not working for me.

A. FreeBSD or other BSD uses the shutdown or halt command to shutdown system. To reboot FreeBSD/BSD box use reboot command.

Task: Shutdown BSD

Use shutdown command to close down the system at a given time. Type following command to shutdown system immediately:
# shutdown -h now
OR
# halt

Task: Reboot BSD system

Type the following command:
# reboot
OR
# shutdown -r now

Featured Articles:

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

{ 4 comments… read them below or add one }

1 bipolor October 13, 2008

When I did it closes all the programs and just hangs and say press the space bar to restart?

Is there a more powerfull command that can shutdown the system right away?

Reply

2 fkrahe March 13, 2009

ahn…

Are you root?

Reply

3 wycito March 20, 2009

Yes I am root in my case and the computer stays on and with the press enter to reboot, what if I (to conserve energy) just want to shut it off for good…

Reply

4 moo March 31, 2009

“To power down a FreeBSD machine on architectures and systems that support power management, simply use the command shutdown -p now to turn the power off immediately.”

http://www.freebsd.org/doc/en/books/handbook/boot-shutdown.html

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 5 + 11 ?
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: