Home > System Tutorial > LINUX > body text

What is the restart environment variable command in Linux?

下次还敢
Release: 2024-04-11 20:36:14
Original
939 people have browsed it

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.

What is the restart environment variable command in Linux?

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>
Copy after login

Options:

  • -f: Force restart, even If there is unsaved data on the computer, it will also force a restart.
  • -n: Do not mount the file system, only restart the kernel.
  • -d: Wait for all ongoing Shut down the running service and then restart it

Execute:

Run the following command as the root user to restart the system:

<code>sudo reboot</code>
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!