This question already has an answer here:

Is there a way I can change the amount of time before I am logged out?

I use gnome-session-quit.

It is currently set for 1 minute.

I would like to set time to less than 60 seconds.

marked as duplicate by N0rbert, Zanna, David Foerster, Melebius, K7AAY Aug 16 '18 at 18:15

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Try something like

at now +30 minute
at> gnome-session-quit
at> <EOT>

Install at if not already.

  • $at now +30 seconds at> gnome-session-quit at> <EOT> /home/andy/bin/Fast_LogOut.sh: line 6: now: command not found Garbled time /home/andy/bin/Fast_LogOut.sh: line 8: syntax error near unexpected token <' /home/andy/bin/Fast_LogOut.sh: line 8: at> <EOT>' – fixit7 Aug 14 '18 at 12:07
  • "seconds" is an invalid option Try this: echo "gnome-session-quit"|at now+1 minute – A S K Aug 14 '18 at 13:01
  • @ A S K I wanted a time less than 60 seconds. – fixit7 Aug 14 '18 at 13:09

Not the answer you're looking for? Browse other questions tagged or ask your own question.