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