You are not logged in.

#1 2020-07-13 06:54:48

amaro
Member
From: xfce
Registered: 2014-05-09
Posts: 367

[SOLVED] ls command change the color of the folders in terminator

Hello everybody,

When I use the 'ls' command in terminator the folders are shown in dark blue on black background.

It is hard for me read.

How to change that color from dark bule to yellow.

Thank you in advance!

Last edited by amaro (2020-07-13 15:08:31)

Offline

#2 2020-07-13 11:33:13

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,764

Re: [SOLVED] ls command change the color of the folders in terminator

man dircolors

However you probably just want to fix your colorscheme?

Online

#3 2020-07-13 12:09:36

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,518
Website

Re: [SOLVED] ls command change the color of the folders in terminator

Whether you want to change dircolors/LS_COLORS or change your colorscheme depends on whether you just want better visibility with a brighter/lighter shade of blue, or whether you really want the directories to be yellow.

For the former, definitely just change your colorscheme (which you should probably do anyways if some colors are not easy to read).  But I'd advise against changing colors 4/12 to anything to far off of a shade of blue (e.g., don't change them to yellow).  While there is no actual rule, it is such an entrenched de-facto standard that the first 15 colors will be some shade of their default color (1-red, 2-green, etc) that many terminal programs will use these colornames (red, brightred ...).  If you change color 4 to be yellow, then somewhere down the line you'll have to enter "color=blue" into a config file to get content to show up as yellow!

So adjust your colorscheme so that the first 15 colors are appealing and/or easy to read.  Then if you still want to rearrange how items are displayed by `ls`, use dircolors/LS_COLORS.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2020-07-13 15:07:58

amaro
Member
From: xfce
Registered: 2014-05-09
Posts: 367

Re: [SOLVED] ls command change the color of the folders in terminator

Thank you, seth!
Helpful as usual.

Thank you, Trilby!
Excellent explanation.

Offline

Board footer

Powered by FluxBB