Home  >  Article  >  php教程  >  Linux reboot command

Linux reboot command

高洛峰
高洛峰Original
2016-12-13 11:43:131617browse

Linux reboot command is used to restart the computer.

If the runlevel of the system is 0 or 6, reboot, otherwise use shutdown command (plus -r parameter) to replace

Syntax

reboot [-n] [-w] [-d] [-f] [-i]

Parameters:

-n: Do not write the memory data back to the hard disk before rebooting.

-w: It does not actually reboot, but just writes the records to /var/ log/wtmp file

-d: Do not write records to the /var/log/wtmp file (-n parameter includes -d)

-f: Force restart without calling the shutdown command

- i: Stop all network-related devices before rebooting

Instance

Restart

# reboot


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