14

I'm currently using Debian 7 Wheezy, and I've noticed that the colors palette on terminal (which might be useful to identify among a large set of files and folders) are not enabled once I log as root.

Same, I've noticed the tab completion doesn't work the same in this situation.

How can I configure these issues?

1 Answer 1

19

If you log in as root, it uses roots ~/.bashrc file which is sourced every time you log in as root. In ~/.bashrc file you'll find the following lines

# You may uncomment the following lines if you want `ls' to be colorized:
# export LS_OPTIONS='--color=auto'
# eval "`dircolors`"
# alias ls='ls $LS_OPTIONS'
# alias ll='ls $LS_OPTIONS -l'
# alias l='ls $LS_OPTIONS -lA'

Uncomment these lines accordingly to get the desired result.

Once you've uncommented the lines you'll need to source .bashrc file e.g source ~/.bashrc && ls -l /.

3

You must log in to answer this question.

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