GNU/Linux >> Tutoriales Linux >  >> Linux

Cómo apagar o reiniciar Linux

La forma sencilla de reiniciar su sistema CentOS/Linux es usando el reboot comando.

Para más opciones, verifique los parámetros:

root@web [~]# reboot --help
reboot [OPTIONS...] [ARG]

Reboot the system.

     --help      Show this help
     --halt      Halt the machine
  -p --poweroff  Switch off the machine
     --reboot    Reboot the machine
  -f --force     Force immediate halt/power-off/reboot
  -w --wtmp-only Don't halt/power-off/reboot, just write wtmp record
  -d --no-wtmp   Don't write wtmp record
     --no-wall   Don't send wall message before halt/power-off/reboot
root@web [~]#

Debe iniciar sesión como root para apagar el sistema operativo.

El otro comando es shutdown . Es similar a reboot .

Para reiniciar la máquina con el shutdown comando, use:

shutdown -r now

Para reiniciar la máquina en un momento específico, use:

shutdown -r 02:30

Para reiniciar la máquina después de X minutos, use:

shutdown -r X

Para apagar la máquina, utilice:

shutdown -h now

Para apagar la máquina en un momento específico, use:

shutdown -h 02:30

Para apagar la máquina después de X minutos, use:

shutdown -h X

Para obtener más opciones, verifique los parámetros para shutdown comando:

root@web [~]# shutdown --help
shutdown [OPTIONS...] [TIME] [WALL...]

Shut down the system.

     --help      Show this help
  -H --halt      Halt the machine
  -P --poweroff  Power-off the machine
  -r --reboot    Reboot the machine
  -h             Equivalent to --poweroff, overridden by --halt
  -k             Don't halt/power-off/reboot, just send warnings
     --no-wall   Don't send wall message before halt/power-off/reboot
  -c             Cancel a pending shutdown
root@web [~]#

Para más información usa los comandos:

man reboot
man shutdown

Linux
  1. Cómo deshabilitar los comandos de apagado y reinicio en Linux

  2. Comprensión de los comandos de apagado, apagado, detención y reinicio en Linux

  3. Cómo apagar o reiniciar Linux usando la línea de comandos

  4. Cómo comprobar el tiempo de actividad del sistema en Linux

  5. Cómo reiniciar Linux usando la línea de comandos

Cómo evitar el apagado o reinicio accidental en Linux

Cómo reiniciar Linux Mint 20

Cómo monitorear una máquina Linux a través de Nagios

Cómo usar el comando de apagado de Linux

Cómo apagar o reiniciar Linux usando la línea de comandos

Cómo apagar o reiniciar Debian 11