Exit the Terminal after 'n' Seconds
Here in this tip we are going to show how to exit terminal after n seconds of interval of Inactivity. This will work on all the Ubuntu and Linux mint version. So here we are going to get stared to force the terminal to close after n seconds of inactivity.
Now here you should edit /etc/profile with this command
sudo gedit /etc/profile
Add following lines of code at the end of this file.
# Exit Terminal
TMOUT=400
export TMOUT
I have set for 400 seconds and you can set your own time here.
No comments:
Post a Comment