Shutdown Linux Server Command

To shut down a Linux server, you can use the shutdown command. This command sends a message to all logged-in users, gives them a grace period to save their work, and then shuts down the system.

To shut down the system immediately, you can use the following command as the root user:

# shutdown -h now

This will immediately shut down the system. If you want to specify a time for the shutdown, you can use the following command:

# shutdown -h +10

This will shut down the system in 10 minutes. You can replace “10” with the number of minutes you want to wait before shutting down the system.

If you want to cancel a scheduled shutdown, you can use the following command:

# shutdown -c

This will cancel any scheduled shutdown and allow the system to continue running normally.

Leave a Comment