To shut down a Linux system using the command line, 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 nowSourcww:ew.lautturi.com
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
If you want to shut down the system and reboot it, you can use the -r
option instead of the -h
option. For example:
sudo shutdown -r now
This will shut down the system and then reboot it immediately.