I am looking for a terminal command to shutdown without having to write down my password and without installing any extra programs.
As when clicking the shutdown button, why it is not asking me for the password and a program like gnome-pie that shutdown without asking me for the password and without confirmation.
I want this command as I am a Java programmer and I want to make use of it.