HowTo: Linux / UNIX Unset TMOUT ( AutoLogOut )

In Linux/Unix, TMOUT is an environment variable that determines the number of seconds of inactivity allowed before a user is automatically logged out. If you want to disable the automatic log out, you can unset the TMOUT variable. Here’s how to do it:

  1. Open a terminal window.
  2. Check if the TMOUT variable is set by running the echo command:
echo $TMOUT

If the output is a number, it means that TMOUT is set and auto logout is enabled.

  1. To unset the TMOUT variable, run the unset command:
unset TMOUT
  1. Verify that the TMOUT variable is unset by running the echo command again:
echo $TMOUT

If the output is empty, it means that the TMOUT variable has been unset and auto logout is disabled.

Note that the TMOUT variable may be set in different configuration files, depending on your system’s setup. If you find that the TMOUT variable is still set after following these steps, you may need to check other configuration files to ensure that TMOUT is not being set by any other processes.

Leave a Comment