linuxcbon wrote:- Bright color in console doing ls -la /dev/ram comes from "/etc/profile" line 188 alias ls='ls --color=auto'
Yes, but this is not a bug. It isn't even unconventional behavior.
By default the ls command displays its lists in monochrome. This is so that all terminals are supported -- even antiques from the 1980s that don't support color and relics from the 1970s that would be confused by the ANSI escape sequences needed to set text colors.
But the Linux console and terminal emulators like xterm (and those it inspired, like rxvt and urxvt) support ANSI escape sequences and color. And most folks prefer the color-coded lists (as long as the colors are well chosen), so it has been common practice for distro builders to include the "alias ls='ls --color=auto'" in a bash configuration file at least since the mid-1990s.
We all know that Puppy users like to make good use of old hardware rather than consigning it to a landfill. But I'll bet not many of us connect our Puppies to monochrome terminals. And those that do probably have terminals that are younger than three decades in age and support ANSI, so would simply display the lists in monochrome without choking on escape sequences.
So removing that line from Puppies and requiring those who want colored lists to add it back to a bash configuration file, or type "ls --color" all the time, is not necessary, nor do I expect that it would be a popular change.
As to the bright yellow on white text that ls displays for devices, I totally agree with you that it is hard to read.
You can change that, as explained earlier in this thread:
Perhaps if Barry thinks that is an improvement, he might include it in /etc/profile. If not, it is an easy customization to make.
I chose bright yellow on black because that combination may look familiar to anyone that uses a distro that sets LS_COLORS using the dircolors utility. This is for consistency. This way, when you go to help your friend who is running another distro, you don't have to relearn the colors. Also, using black for a background won't affect users who already have black backgrounds. But you may use any colors you like by substituting other values for
40 and
33, and/or removing
01:
Foreground colors:
30 black (dark gray if bright)
31 red
32 green
33 brownish (yellow if bright)
34 blue
35 magenta
36 cyan
37 light gray (white if bright)
39 default foreground color
Background colors:
40 black
41 red
42 green
43 brownish
44 blue
45 magenta
46 cyan
47 light gray
49 default background color
My example uses
01 to make the foreground color bright. If you don't want a bright color remove the
01 and the preceding semicolon (e.g.,
cd=40;33).
Likewise, for the default foreground or background colors, you don't need to use
39 or
49. Instead you may simply not set a foreground or background color by omitting the number and the semicolon (e.g.,
cd=33).
There does exist a dircolor utility which is helpful if you would like to make a lot of changes to LS_COLORS, but it is overkill if you just want to change a couple of things. It creates a very long string of over a thousand characters for LS_COLORS, some of which just set colors that are default anyway. Better to just set the few that you want to change.
(If you decide to try dircolor, be sure that the version you get isn't newer than your version of ls ("ls --version"). If dircolors is newer it may use new codes that the older ls doesn't understand, and you will get no colors at all.)