LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-22-2004, 05:18 AM   #1
chakkerz
Member
 
Registered: Dec 2002
Location: Brisbane, Australia
Distribution: RedHat (RHEL, FC, CentOS), openSuSE, Mac OS X
Posts: 653

Rep: Reputation: 32
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).
 
Old 11-22-2004, 06:47 AM   #2
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 46
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 . . .
 
Old 11-22-2004, 09:01 PM   #3
chakkerz
Member
 
Registered: Dec 2002
Location: Brisbane, Australia
Distribution: RedHat (RHEL, FC, CentOS), openSuSE, Mac OS X
Posts: 653

Original Poster
Rep: Reputation: 32
Interesting, thanks for that, i found something along those line somewhere, but this actually makes sense

Again, TA.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing terminal colors Athos Debian 3 09-11-2007 05:54 PM
how to get colors in terminal window? emanresu Linux - Newbie 3 11-15-2005 02:55 PM
Gnome terminal colors... hjles Slackware 1 11-26-2003 10:29 PM
Terminal Colors dhrivnak Slackware 2 10-26-2003 03:59 PM
gnome-terminal colors as su teacup Slackware 2 05-10-2003 12:31 AM


All times are GMT -5. The time now is 09:28 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration