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:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop











{ 4 comments… read them below or add one }
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?
ahn…
Are you root?
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…
“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