LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 08-29-2006, 03:31 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 73
Terminal Colors


I notice that when I am logged in as a regular user in CLI (terminal), I can see colors like "purple" is a directory and etc. When I become root, everything becomes white and I lose all colors for some reason which makes things more difficult when looking around. Is there a reason for this or is this only my machine?

Here are some exmaples of the same directory as regular user and root.

Regular User

Root User
 
Old 08-29-2006, 03:51 PM   #2
dunkert
LQ Newbie
 
Registered: Aug 2006
Location: Montreal
Distribution: fedora
Posts: 19

Rep: Reputation: 0
on my distro (fedora) the colors are preset in the file dircolors which is in /usr/bin so make sure it is in the $PATH of the user root.
 
Old 08-29-2006, 03:52 PM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

Showing color when using ls is an option, which most distro's make default. It could be that Debian choose to give normal user colors and root no colors.

Check to see if the following alias is present: alias ls='ls --color=auto'.

I'm not a debian user, so I don't know where they have put this stuff. It looks like it locally defined, so check your ~/.bahs* and/or ~/.profile first.

Hope this helps.
 
  


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 06:54 PM
how to get colors in terminal window? emanresu Linux - Newbie 3 11-15-2005 03:55 PM
Terminal Colors chakkerz Linux - General 2 11-22-2004 10:01 PM
Terminal Colors dhrivnak Slackware 2 10-26-2003 04:59 PM
gnome-terminal colors as su teacup Slackware 2 05-10-2003 01:31 AM


All times are GMT -5. The time now is 10:19 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