Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I make the console run CLEAR on logout

Status
Not open for further replies.

silverspecv

Programmer
Oct 31, 2003
125
US
I'm using slackware 10.. how do I configure the console to clear screen on logout or exit?
 
Check out my default ~/.bash_logout on my Fedora Core 2 box:
[tt]
[flugh@localhost flugh]$ cat .bash_logout
# ~/.bash_logout

clear
[/tt]
That should do the trick. I don't think that it's a distro dependant thing, as the bash man page says it will execute commands found in ~/.bash_logout if the file exists.

----
JBR
 
You da man, flugh. That worked like a charm.. I knew it was something like that, but I didn't had to create the file which is why I couldn't find it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top