Software >> OS >> Unix >> Shell >> How to set or unset bash session idle timeout

 

export TMOUT=<time-in-seconds>

To make it permanent system wide in Linux

put in /etc/profile.d/autologout.sh

autologout.sh
TMOUT=300
export TMOUT

 

# chmod +x /etc/profile.d/autologout.sh

 

To remove this setting (unset the timeout)

export TMOUT=0