How do I reboot my Linux system? When you are a new to the Linux operating system sometimes what should be painfully obvious is not so apparent. Luckily there is more than one way to reboot your Linux box. We will go over the init, reboot and shutdown commands. All methods vary greatly in syntax so once one seems memorable, it is probably better to stick to that one. I have been using Linux a very long time so we will start off with the one I learned first.
This method is actually probably the least used but also the safest. When you change the init level to 6, there is a clean up process that is done. This differs from a reboot command which is more like hitting the reset button. Either use sudo or log in as root.
There is a bit of controversy on the reboot command and it if actually shuts down processes in a graceful manner. It does seem to at least cleanly dismount the file system. What reboot does have going for it though, at least it is easy to remember though, because what you want to do is reboot right? So there is that. If you are clear across the globe and remoted it maybe reboot is the command for you. If a program hangs we may get stuck if you do not have a technology like PDU or iDrac available.
If you are running a multi user system then you may need to warn your users. With the shutdown command you can send a notice and delay the restart to a time you designate.
The last value is in minutes, you can actually use the word now which is an immediate reboot. You can also use a format and do a predesignated time like this. This would reboot at 11pm.