how to shut down linux from terminal code example
Example 1: shut down instantly on linux
sudo shutdown now
Example 2: shutdown command linux
#The shutdown command is used and the computer will shutdown in a minute.
shutdown
Example 3: shut down computer in terminal linux
sudo poweroff