← Back to team overview

sslug-teknik team mailing list archive

ls --color igenigen

 

Af en eller anden forbandet grund virker mit ls='ls --color' alias kun
når jeg er logget ind som root!
Er der en forklaring på det? Jeg synes jeg har tjekket det i både hoved
og r*v, men det virker ikke.

Nedenfor findes ls -al fra de pågældende bibls og indholdet af
(.)bashrc-filerne

På forhånd tak
Lars
-----------------

/home/lerager
-rw-r--r--   1 lerager  users         452 mar 29 00:19 .bash_history
-rw-r--r--   1 lerager  root          241 apr  1 04:51 .bash_profile
-rw-r--r--   1 lerager  root          200 apr  2 05:14 .bashrc

/root
-rw-------   1 root     root        10052 apr  2 04:30 .bash_history
-rw-r--r--   1 root     root           24 jul 14  1994 .bash_logout
-rw-r--r--   1 root     root          238 aug 23  1995 .bash_profile
-rw-r--r--   1 root     root          200 mar 28 23:54 .bashrc

/etc
-rw-r--r--   1 root     root          360 apr  2 05:07 bashrc

# /etc/bashrc
# For some unknown reason bash refuses to inherit
# PS1 in some circumstances that I can't figure out.
# Putting PS1 here ensures that it gets loaded every time.
PS1="[\u@\h \W]\\$ "

alias which="type -path"
alias ls='ls --color'

# /root/.bashrc
# User specific aliases and functions
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias ls='ls --color'

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

# /home/lerager/.bashrc
# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias ls='ls --color'

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi


Follow ups