FreeBSD or BSD reboot and shutdown system command

www.lau‮c.irutt‬om
FreeBSD or BSD reboot and shutdown system command

To reboot or shutdown a FreeBSD or other BSD system, you can use the shutdown command. The shutdown command allows you to reboot or shut down the system in a controlled manner, giving users time to save their work and allowing system processes to be terminated gracefully.

To reboot the system, you can use the -r option:

shutdown -r now

This will reboot the system immediately.

To shut down the system, you can use the -p option:

shutdown -p now

This will shut down the system immediately.

You can also specify a delay before the reboot or shutdown occurs by using the -h option followed by the number of minutes to wait. For example:

shutdown -r +10

This will reboot the system in 10 minutes.

It's a good idea to use the shutdown command instead of just turning off the power, as it allows the system to properly terminate processes and clean up before shutting down.

Created Time:2017-10-28 20:40:37  Author:lautturi