To shut down a Linux system from the terminal, you can use the shutdown
command with the -h
option to specify that the system should be shut down. For example, to shut down the system immediately, you can use the following command:
sudo shutdown -h now
This will shut down the system immediately and power it off.
You can also specify a delay before the system is shut down using the -t
option. For example, to shut down the system in 10 minutes, you can use the following command:
sudo shutdown -h +10
You can also specify a specific time for the system to be shut down using the -h
option followed by the time in the format hh:mm
. For example, to shut down the system at 10:00 PM, you can use the following command:
sudo shutdown -h 22:00