Ubuntu Shutdown Command Guide

In Ubuntu, the shutdown command is used to power off or restart the system. Its basic syntax is as follows:

shutdown [OPTIONS] TIME [MESSAGE]

OPTIONS is an optional parameter, TIME specifies the time for system shutdown or restart, and MESSAGE is an optional shutdown message.

For example, to immediately shut down the system, you can use the following command:

sudo shutdown now

To delay the system shutdown by 5 minutes, you can use the following command:

sudo shutdown -h +5

The following command can be used to restart the system:

sudo shutdown -r now

You can use the man shutdown command to find more detailed information about the shutdown command.

bannerAds