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:
- Open a terminal window.
- Check if the
TMOUT
variable is set by running theecho
command:
echo $TMOUT
If the output is a number, it means that TMOUT
is set and auto logout is enabled.
- To unset the
TMOUT
variable, run theunset
command:
unset TMOUT
- Verify that the
TMOUT
variable is unset by running theecho
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.