June 20, 2013, 11:41 AM — Here's how you can automatically shut down the terminal after a period of inactivity in Ubuntu 13.04.
1. Open a terminal window.
2. Type in the following command then hit Enter.
sudo gedit /etc/profile
3. Append these lines to the end of the file:
4. Change the "seconds" to the number of seconds you want to elapse before the terminal is shut down.
5. Save the file.
Read more: Linux and Life