[CentOS] Where is the file that sets aliases?
William L. Maltby
CentOS4Bill at triad.rr.com
Sat Nov 8 22:25:37 UTC 2008
On Sat, 2008-11-08 at 22:02 +0000, Anne Wilson wrote:
> On Saturday 08 November 2008 20:38:43 William L. Maltby wrote:
> > /etc/bashrc
> > But be aware that root-specific ones are here on 5.x
> > # grep alias .bashrc
> > # User specific aliases and functions
> > alias rm='rm -i'
> > alias cp='cp -i'
> > alias mv='mv -i'
> I'm sorry, but I just can't understand why I can't find these
Local mods somewhere in the past? Missed update?
# cat /etc/redhat-release
CentOS release 5.2 (Final)
Corruption? Have you done an rpm --verify? Have you done an updatedb and
locate for rpmsave and rpmnew? Those are all I can think of.
Keep in mind that when you login, various config/init files are used by
bash, depending on normal operation or not. I've not examined all the
below, but nothing else catches my eye as "The Usual Suspects" (TM).
# ls -ld /etc/*prof* /etc/*bash*
drwxr-xr-x 2 root root 4096 Sep 17 06:00 /etc/bash_completion.d
-rw-r--r-- 1 root root 1437 Nov 28 2006 /etc/bashrc
drwxr-xr-x 2 root root 4096 Nov 10 2007 /etc/desktop-profiles
-rw-r--r-- 1 root root 937 Jan 31 2006 /etc/profile
drwxr-xr-x 2 root root 4096 Oct 13 16:16 /etc/profile.d
-rw-r--r-- 1 root root 32 Jan 3 2008 /etc/yumex.profiles.conf
]# grep -irl alias /etc/*prof* /etc/*bash*
In /etc/passwd, add the "-x" flag to the end of the root line and you
should see all executed commands.
> <snip sig stuff>
More information about the CentOS