Home  >  Article  >  System Tutorial  >  How to use linux reboot command reboot

How to use linux reboot command reboot

下次还敢
下次还敢Original
2024-04-11 15:48:151243browse

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>

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>

Use -f Option to force a reboot:

<code>reboot -f</code>

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

<code>reboot -w</code>

Reboot to the BIOS setup interface:

<code>reboot -p</code>

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!

Statement:
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