Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-07-2006, 10:44 PM   #1
Registered: Apr 2003
Posts: 34

Rep: Reputation: 15
Change the logout file.

hello everybody.
does anybody know how change the file which run when the user log out?

the currently file is: "~/.bash_logout" but i want change to another.

I have looked the environment variables and i've found the "HISTFILE=~/.bash_history", so, i imagine that there is something to specify the logout file.

does anybody know?
Old 09-08-2006, 03:08 AM   #2
Registered: Oct 2004
Location: Germany
Distribution: Debian
Posts: 274

Rep: Reputation: 34
try this:
man bash
Old 09-08-2006, 08:00 AM   #3
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
$ strings /bin/bash |grep bash_logout
Looks hard-coded to me, so your only option is to re-build bash. The only reason I could think of for wanting to change it is for making mischief. Why do you want to do it?
Old 09-08-2006, 02:24 PM   #4
Senior Member
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
I always put mine in ~/.bash_logout or login and it works fine. I think it is the last file read as far as configs go. You may can edit /etc/profile but it should work with the other.



bash, logout

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
kde: i want to access the logout source code and change it. Doomhammer Linux - Software 1 10-18-2004 01:13 PM
Continue executing file after you logout digitalgravy Linux - Newbie 5 10-06-2004 08:28 PM
.bash_logout file is not runing on logout Mordeth_0 Linux - Newbie 9 08-19-2004 06:11 PM
change Gnome logout to show more options jaa1180 Libranet 0 06-14-2004 08:22 AM
RedHat 7.3 / How to change resolution & how to logout and into a terminal fleshwound Linux - Software 1 07-09-2003 07:22 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration