MAC OS X, Linux, Windows and other IT Tips and Tricks

19 Sep 11 Change the bash session timeout

Sometimes we need to have a longer bash session timeout value to be able to stay logged-in while nothing is happening on the terminal. Here is the setting you can include in your .bashrc or .profile files:
export TMOUT=0
This will set the shell session to have no timeout duration.
export TMOUT=345600
This will set the timeout duration to four days (345600 seconds).

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: