Use the reboot command to restart the system in Linux. Usage: sudo reboot [options]. Options: -f forces a restart, -n does not mount the file system and only restarts the kernel, -d waits for the service to shut down before restarting.
Linux restart environment variable command
In the Linux operating system, you can use reboot
Command to restart the system. It is a privileged command and requires root privileges to execute.
Usage:
<code>reboot [选项]</code>
Options:
Execute:
Run the following command as the root user to restart the system:
<code>sudo reboot</code>
Check the restart status:
You can use the tail -f /var/log/kern.log
command to check the restart status.
The above is the detailed content of What is the restart environment variable command in Linux?. For more information, please follow other related articles on the PHP Chinese website!