How to reboot and shut down the Linux system?
In a Linux system, the following commands can be used to restart and shut down:
- Restart the system.
- To use the reboot command: either type “sudo reboot” or simply “reboot”.
- To use the shutdown command: either type “sudo shutdown -r now” or “sudo shutdown -r +1” (restart in 1 minute).
- Shut down system:
- To shut down the system using the shutdown command: sudo shutdown -h now or sudo shutdown -h +1 (shutdown in 1 minute).
- Execute the command “sudo halt”
- Shut down the system using the poweroff command: sudo poweroff.
Please make sure you have the appropriate permissions before using these commands.