1

Why ls command is not showing color in Ubuntu 14.04.2? Previously it worked.

My alias report:

alias cp='cp -i'
alias gdb='gdb -q'
alias ll='ls -l --color=auto'
alias mv='mv -i'
alias rm='rm -i'

# enable color support of ls and also add handy aliases
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'

# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'

# Add an "alert" alias for long running commands.  Use like so:
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
# ~/.bash_aliases, instead of adding them here directly.
if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
4
  • please add output of grep alias ~/.bashrc
    – squareborg
    Mar 2, 2015 at 19:24
  • 1
    Your alias is "ll" not "ls" , use alias ls='ls --color=auto'
    – Panther
    Mar 3, 2015 at 0:50
  • @DavidFoerster - OK, done
    – Panther
    Mar 4, 2015 at 1:41
  • or type ll instead of ls....
    – Elder Geek
    Mar 4, 2015 at 18:14

1 Answer 1

1

Your alias is "ll" not "ls", use:

alias ls='ls --color=auto'
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .