[CentOS] Where is the file that sets aliases?
John R Pierce
pierce at hogranch.com
Sat Nov 8 22:26:51 UTC 2008
Anne Wilson wrote:
> On Saturday 08 November 2008 20:38:43 William L. Maltby wrote:
>> 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
upon starting a login shell...
the standard supplied profiles by default also run
and this last runs
I note that the commands you're seeing are aliased explicitly in
[root at freescruz ~]# cat /root/.bashrc
# User specific aliases and functions
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
# Source global definitions
if [ -f /etc/bashrc ]; then
by default in most every RH system I checked, from the above CentOS 5
all the way back to RH Linux 6.2
[root at hogranch /root]# ls -la .bashrc
-rw-r--r-- 1 root root 176 Aug 23 1995 .bashrc
[root at hogranch /root]# rpm -qf .bashrc
[root at hogranch /root]# rpm -qi rootfiles
Name : rootfiles Relocations: (not relocateable)
Version : 5.2 Vendor: Red Hat Software
Release : 5 Build Date: Sun Mar 21
Install date: Wed Feb 23 13:13:29 2000 Build Host:
Group : System Environment/Base Source RPM:
Size : 1912 License: public domain
Packager : Red Hat Software <http://developer.redhat.com/bugzilla/>
Summary : The basic required files for the root user's directory.
The rootfiles package contains basic required files that are placed
in the root user's account. These files are basically the same
as the files found in the etcskel package, which are placed in regular
users' home directories.
note the date on that .bashrc file, heh. 13 years ago.
More information about the CentOS