how to shutdown linux from terminal code example
Example 1: shut down instantly on linux
sudo shutdown now
Example 2: shutdown terminal command
#Shutdown
sudo shutdown -h now
#or
sudo shutdown -h [TIME]
#Reboot
sudo reboot
Example 3: shutdown command linux
#The shutdown command is used and the computer will shutdown in a minute.
shutdown