I am using LXDE on Debian. When logged in LXDE as user, I can click on the
logout icon in the menu and choose one of the options:
But when I type
shutdown -r now in the terminal, that does not work.
How can I shutdown my system as the user from within the terminal? I need a command, which will be executed when my battery is critically low, so that my system can be shut down cleanly.