I wasnt satisfied with the default blue color shades for ls, and was exploring ways to change them. I happened to come across the dircolor resources.
To get the default ouput, do this:
dircolors -p > ~/.dircolorsrc
Once this is done, you get a modifiable file with colors for everything. Edit it to your whim.
Then to make sure that the codes get loaded, add the following to your ~/.bashrc:
d=.dircolors test -r $d && eval "$(dircolors $d)"
More info can be found by:
info coreutils 'dircolors invocation'
I finally decided on the following colors:
I am attaching my .dircolor file.[download id=”4949″]
I chose
Dir-Orange Underline
Symlinks-Cyan
Pictures-Pink
Executables-Blue
Color chart:
# Below are the color init strings for the basic file types. A color init # string consists of one or more of the following numeric codes: # Attribute codes: # 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed # Text color codes: # 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37-39=white # # Background color codes: # 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
Joel G Mathew, known in tech circles by the pseudonym Droidzone, is an opensource and programming enthusiast.
He is a full stack developer, whose favorite languages are currently Python and Vue.js. He is also fluent in Javascript, Flutter/Dart, Perl, PHP, SQL, C and bash shell scripting. He loves Linux, and can often be found tinkering with linux kernel code, and source code for GNU applications. He used to be an active developer on XDA forums, and his tinkered ROMS used to be very popular in the early 2000s.
His favorite pastime is grappling with GNU compilers, discovering newer Linux secrets, writing scripts, hacking roms, and programs (nothing illegal), reading, blogging. and testing out the latest gadgets.
When away from the tech world, Dr Joel G. Mathew is a practising ENT Surgeon, busy with surgeries and clinical practise.