Introduction to Linux - A Hands on Guide | Linux Bible | Linux From Scratch | A Newbie's Getting Started Guide to Linux | Linux Command Line Cheat Sheet | More Linux eBooks

Tuesday, 28 January 2014

How To : Close the Terminal After Being Inactive for 'N' Seconds


    This article-cum-tip will help you to understand how to close the terminal automatically when there is no activity for a certain number of seconds. This is very simple, just follow the steps mentioned below:

Step 1: Start Terminal and open the file /etc/profile with your favorite text editor.

sudo gedit /etc/profile

Step 2: At the end of the file, just add a couple of lines given below:

export TMOUT
Don't forget to specify the timeout by replacing the text in above lines with a specific number.

Step 3: Execute the following command for the changes to take place.

sudo source /etc/profile
And you're done!


Post a Comment