Shutdown linux from the command terminal

Add this function to roots’ .bashrc file:
quit ()
{
poweroff -d
}
Now all you have to do is be root, and type quit…