LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Terminal Colors (https://www.linuxquestions.org/questions/linux-general-1/terminal-colors-257893/)

chakkerz 11-22-2004 05:18 AM

Terminal Colors
 
I have a feeling i asked this before, but i didn't get this answered because of compound questions (and i also can't seem to find the post [oh it's a great day i'm having thank you]).

:)

Anyways, i've asked a couple of people locally, and all have assured me that when i connect to linux as myself (chakkerz) and then enter root mode on the console via su, that the colors highlighting file type disappear to indicate mode, that is "no longer yourself, watch you step, know what you're doing".

Now i was happy running with this until this morning, when i saw that in Fedora Core 3, when you enter root mode via su, the colors remain.

So my question, is the colors disappearing a bug, which has been visited upon many a people and not a feature, or is FC3 merely odd in this regard (for the record, i feel FC is the worst distro ever, and thart was before it raised questions about the color issue).

oneandoneis2 11-22-2004 06:47 AM

The colors appear because "ls" is aliased to "ls --color"

Try "su -" and see if that makes the colors work.

If it doesn't, set the alias in root's .bashrc

It's a pretty lousy way of differentiating between user & root. I prefer to have root's prompt red, since you know that you'll have a prompt when you're logged in as root, but you've no gaurantee there'll be an "ls" on the screen . . .

chakkerz 11-22-2004 09:01 PM

Interesting, thanks for that, i found something along those line somewhere, but this actually makes sense :)

Again, TA.


All times are GMT -5. The time now is 08:08 PM.