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?
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
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 /.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0