Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8013

Raspberry Pi OS • Re: Changing the Color of Folders, When Running LS

$
0
0
Hi all

When doing ls -la, I find the blue color of folders not readable,
and so would like to change it to another color.

I googled how to do it, and found that there is an LS_COLORS variable that contains the colors for various file types.


Now, I can override it in my .bashrc file with the new setting for folders,
but I wonder:
In RPi OS Lite, where is this variable defined?
So I would simply edit it there.


Thank you
After a google i found this, the file below is where the colours come from

Code:

~/.dircolors
if the files doesn't exist, create it using

Code:

dircolors -p > ~/.dircolors
then edit this file to change the colours you want

Statistics: Posted by Annie UK — Tue Jul 08, 2025 11:54 am



Viewing all articles
Browse latest Browse all 8013

Trending Articles