Looking For Location Of Some Specific Settings In CentOS 6.x
Hello,
I have several virtual machines, all with CentOS 6.x and one so called virtual server at a web hoster
my virtual machines (VMware) were all installed manually using the .iso, some exist longer and therefore were originally a CentOS 6.3, some are newer and wer originally a CentOS
6.6;
and this virtual server has been installed using a preconfigured image from the web hoster;
on all this virtual machines and the virtual server several ‘yum update’
brought them to same release, not CentOS 6.7, as I havn’t updated to 6.8 yet;
at the virtual server I find this
export LS_OPTIONS=”–human –color=always”
alias ls=’ls $LS_OPTIONS’
alias ll=’ls $LS_OPTIONS -l’
alias l=’ls $LS_OPTIONS -Al’
in /root/.bashrc
on my virtual machines I can’t find this settings; nor doesn’t ‘env’ show a variable ‘LS_OPTIONS’
but ‘alias’ shows this:
alias cp=’cp -i’
alias l.=’ls -d .* –color=auto’
alias ll=’ls -l –color=auto’
alias ls=’ls –color=auto’
alias mv=’mv -i’
alias rm=’rm -i’
alias which=’alias | /usr/bin/which –tty-only –read-alias –show-dot
–show-tilde’
the aliases for cp, mv, rm are explained by the first part of
/root/.bashrc (not quoted above)
alias rm=’rm -i’
alias cp=’cp -i’
alias mv=’mv -i’
when I comment out the above shown part of /root/.bashrc on the virtual server
‘alias’ shows the same as on my virtual machines (VMware)
but where are these aliases
alias l.=’ls -d .* –color=auto’
alias ll=’ls -l –color=auto’
alias ls=’ls –color=auto’
alias which=’alias | /usr/bin/which –tty-only –read-alias –show-dot
–show-tilde’
set?
Thanks for help, Walter
One thought on - Looking For Location Of Some Specific Settings In CentOS 6.x
Am 28.05.2016 um 19:23 schrieb Walter H.:
[ … ]
# grep alias /etc/profile.d/*
/etc/profile.d/colorls.csh:alias ll ‘ls -l’
/etc/profile.d/colorls.csh:alias l. ‘ls -d .*’
/etc/profile.d/colorls.csh:alias ll ‘ls -l –color=auto’
/etc/profile.d/colorls.csh:alias l. ‘ls -d .* –color=auto’
/etc/profile.d/colorls.csh:alias ls ‘ls –color=auto’
/etc/profile.d/colorls.sh: alias ll=’ls -l’ 2>/dev/null
/etc/profile.d/colorls.sh: alias l.=’ls -d .*’ 2>/dev/null
/etc/profile.d/colorls.sh:alias ll=’ls -l –color=auto’ 2>/dev/null
/etc/profile.d/colorls.sh:alias l.=’ls -d .* –color=auto’ 2>/dev/null
/etc/profile.d/colorls.sh:alias ls=’ls –color=auto’ 2>/dev/null
/etc/profile.d/vim.csh: alias vi vim
/etc/profile.d/vim.sh: # for bash and zsh, only if no alias is already set
/etc/profile.d/vim.sh: alias vi >/dev/null 2>&1 || alias vi=vim
/etc/profile.d/which2.sh:alias which=’alias | /usr/bin/which –tty-only
–read-alias –show-dot –show-tilde’
Alexander