Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 07-08-2005, 07:02 AM   #1
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, 07:51 AM   #2
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, 08:50 AM   #3
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, 07:22 PM   #4
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, 07:46 PM   #5
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Try a:

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, 10:41 PM   #6
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


2) add these two lines to ~/.bash_profile

export TERM

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

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.


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 02: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 02:56 PM
What do the colours mean in the terminal? alaskazimm Mandriva 2 07-04-2004 07:34 AM
No .bashrc, I need colours in the terminal!! akudewan Slackware 9 06-07-2004 04:16 PM
How do I get colours in terminal (aterm)? mr-tiddles Linux - General 5 10-23-2003 10:23 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:59 AM.

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