Re: bash_logout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Thanks chris!


-----Original Message-----
From: centos-bounces@xxxxxxxxxx [mailto:centos-bounces@xxxxxxxxxx] On Behalf
Of Christoph Neuhaus
Sent: Wednesday, April 01, 2009 11:35 AM
To: CentOS mailing list
Subject: Re:  bash_logout

> Hi, I was searching for the system wide bash_logout and couldn't find any
> documentation on it.

There is no system wide bash_logout, according to the bash man page,  
CentOS 4.7.

Instead look at the way a system wide bashrc is included in ~/.bashrc:
   [ -f /etc/bashrc ] && . /etc/bashrc
You could do the same in ~/.bash_logout:
   [ -f /etc/bash_logout ] && . /etc/bashrc

If you want to include that line for every new user's ~/.bash_logout, add  
it to the file /etc/skel/.bash_logout, then create the user(s).

Chris
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos
No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.0.238 / Virus Database: 270.11.35/2034 - Release Date: 04/01/09
06:06:00

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux