Home > System Tutorial > LINUX > body text

How to use linux reboot command reboot

下次还敢
Release: 2024-04-11 15:48:15
Original
1209 people have browsed it

Linux reboot command reboot is used to reboot the system, shut down processes and unmount the file system. Options include: -f to force a reboot; -h to shut down and then restart the system; -p to reboot to BIOS settings; -w to write to the changed buffer. Usage examples: reboot (normal reboot); reboot -f (forced reboot); reboot -w (write buffer); reboot -p (reboot to BIOS).

How to use linux reboot command reboot

Usage of Linux restart command reboot

Restart command reboot

## The #reboot command is used to reboot a Linux system. It shuts down all running processes, unmounts the file system, and restarts the kernel.

Syntax:

<code>reboot [OPTION]...</code>
Copy after login

Options:

  • -f: Force restart, even There are unsaved changes or operations in progress.
  • -h: Shut down the system before restarting.
  • -p: Reboot into the BIOS setup interface instead of the Linux kernel.
  • -w: Write all changed buffers to disk before restarting.

Usage example:

Normally, use the following command to restart the system:

<code>reboot</code>
Copy after login

Use -f Option to force a reboot:

<code>reboot -f</code>
Copy after login

Use the -w option to write the changed buffer to disk:

<code>reboot -w</code>
Copy after login

Reboot to the BIOS setup interface:

<code>reboot -p</code>
Copy after login

Note:

    To use the reboot command, you need root permissions.
  • The restart operation may take several minutes to complete.
  • Before performing the restart operation, please ensure that all important data has been saved.

The above is the detailed content of How to use linux reboot command reboot. 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!