shut down instantly on linux

C++
sudo shutdown now
Source

Also in C++: