Tabla de Contenidos

shutdown

Comando Linux para apagar el sistema.

Programar apagado

shutdown [OPCIÓN] <TIEMPO> [MENSAJE]

Donde:

Por ejemplo, apagar el sistema inmediatamente:

shutdown now

Apagar el sistema en 10 minutos:

shutdown +10 

Apagar el sistema a las 20:30:

shutdown 20:30

Revisar hora de apagado programado

En el fichero /run/systemd/shutdown/scheduled encontraremos la información. Por ejemplo:

USEC=1724594573475832
WARN_WALL=1
MODE=poweroff
UID=1000
TTY=pts/0

En USEC está la fecha y hora en formato EPOCH de Unix. Si queremos “traducirlo” a fecha y hora humanas:

perl -wne 'm/^USEC=(\d+)\d{6}$/ and printf("Shutting down at: %s\n", scalar localtime $1)' < /run/systemd/shutdown/scheduled

O usar algún servicio online como Epoch Converter

Systemd

En distribuciones Linux con Systemd:

systemctl poweroff