LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-08-2005, 08:02 AM   #1
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
Editing /etc/DIR_COLORS does not change colours in terminal


Hi all,

i'm trying to change the default colours for files/directories/etc in my terminal (a term), i did some looking around and found that i need to edit /etc/DIR_COLORS

so i did, following the comment lines i added

term aterm

and edited the colour values, yet it remains the same, i logged out and in again but still nothing, even copied the file into ~/ but that didnt work.

Is there some aterm config or somethign over writing these settings.

Thanks for your time
 
Old 07-08-2005, 08:51 AM   #2
seran
Member
 
Registered: Aug 2004
Location: Bangalore
Posts: 64

Rep: Reputation: 16
Did you copied /etc/DIR_COLORS in to your home directory as .dir_colors ?

The /etc/DIR_COLORS file says.....

# Configuration file for the color ls utility
# This file goes in the /etc directory, and must be world readable.
# You can copy this file to .dir_colors in your $HOME directory to override
# the system defaults.


I tried this sometime before, and it works fine for me.
 
Old 07-08-2005, 09:50 AM   #3
TruckStuff
Member
 
Registered: Apr 2002
Posts: 498

Rep: Reputation: 30
are you sure you are trying to view the listing w/ colors? e.g. ls --color==tty
 
Old 07-08-2005, 08:22 PM   #4
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Original Poster
Rep: Reputation: 45
I'm pretty sure it's using colours, the directories appear blue etc.
 
Old 07-08-2005, 08:46 PM   #5
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Try a:

Code:
source /etc/profile
And see if that changes your colors.. it's called upon one of your bash startup scripts, usually the /etc/profile has the bit about DIR COLORS in it..
 
Old 08-11-2005, 11:41 PM   #6
VibeOfOurTribe
LQ Newbie
 
Registered: Jul 2004
Posts: 21

Rep: Reputation: 16
I was also having this problem, but then after much frustration found the answer. I noticed that there were actually two files: /etc/DIR_COLORS and /etc/DIR_COLORS.xterm then i noticed that echo $TERM returned "xterm". If this is your case, like it was mine, you have two options:

1) edit /etc/DIR_COLORS.xterm according to man /etc/DIR_COLORS

or

2) add these two lines to ~/.bash_profile

TERM=xterm-color
export TERM

Last edited by VibeOfOurTribe; 08-12-2005 at 01:15 AM.
 
Old 02-27-2014, 02:56 AM   #7
StevenXL
Member
 
Registered: Jan 2014
Posts: 69

Rep: Reputation: Disabled
Did anyone ever figure this out? I am having the same problems.

I have a .dir_colors in my home directory; I have added TERM=xterm-color and export TERM to my .bashrc; and I have added d=$HOME/.dir_colors as well as eval 'dircolors $HOME/.dir_colors" and the colors still don't seem to change.
 
  


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
Questions about su, su -, shells and terminal colours Nylex Linux - General 4 08-13-2005 03:59 AM
Can I set ssh to change my konsole colours when I connect to a remote box? davee Linux - General 2 12-16-2004 03:56 PM
What do the colours mean in the terminal? alaskazimm Mandriva 2 07-04-2004 08:34 AM
No .bashrc, I need colours in the terminal!! akudewan Slackware 9 06-07-2004 05:16 PM
How do I get colours in terminal (aterm)? mr-tiddles Linux - General 5 10-23-2003 11:23 AM


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

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