

You can change the colors by editing your $LS_COLORS variable using dircolors (from man ls): Using color to distinguish file types is disabled both by default and The colors of ls can represent the permissions the defaults for some systems is to show directories where everyone has write permissions with a green background:

#Green file folders full#
A full list of color codes for the 16 and 256 color modes are shown in the below screenshot: Where both FOREGROUND_COLOR and BACKGROUND_COLOR is a number the range 0-255.

XTerm and most other modern terminal emulators support 256 colors.Ī XTerm 256-color foreground color code is of the form: 38 5 Ī XTerm 256-color background color code is of the form: 48 5 TARGET indicates the target for the coloring ruleįOREGROUND_COLOR indicates the foreground color:īACKGROUND_COLOR indicates the background colors:įields may be omitted starting from the right, so for instance. A list of the different coloring settings can be accessed with dircolors -print-database.Įach line of output, such as BLK 40 33 01, is of the form: Stephano Palazzo over at Ask Ubuntu has made this very instructive picture over the different attribute colors:Īs terdon pointed out, the color settings can be modified via dircolors.
