Sudo Shutdown
sudo shutdown now -P # this will shut down the machine imidiately
sudo shutdown 5 -P # this will shut down the machine after 5 mins
sudo shutdown -c # this will cancel a scheduled shutdown
CoderHomie