Fedora Linux Support Community & Resources Center
  #1  
Old 3rd November 2012, 12:32 PM
eddyq Offline
Registered User
 
Join Date: Nov 2012
Location: FL
Posts: 19
windows_xp_2003firefox
Changing terminal colors

I just installed Fedora 10. I used the VMware settings to share some Windows folders. They appear in /mnt/hgfs. But if I ls there, the color of the folders is very difficult to read the folder names.

I notice that if I ls in my home directory then the color is just fine.

I notice a difference in the folder attributes:
In ~ I see this drwxr-xr-x for a folder.
In /mnt/hgfs I wee this drwxrwxrwx for a folder.

How do I change the terminal colors for a folder with drwxrwxrwx attributes?

Last edited by eddyq; 3rd November 2012 at 12:45 PM.
Reply With Quote
  #2  
Old 3rd November 2012, 12:53 PM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,930
linuxfirefox
Re: Changing terminal colors

Moved to EOL (End Of Life) Versions.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #3  
Old 3rd November 2012, 01:15 PM
george_toolan Online
Registered User
 
Join Date: Dec 2006
Posts: 1,718
linuxfirefox
Re: Changing terminal colors

What kind of Desktop Environment and Terminal do you use? Try

Code:
export | grep -i color
Reply With Quote
  #4  
Old 3rd November 2012, 02:57 PM
eddyq Offline
Registered User
 
Join Date: Nov 2012
Location: FL
Posts: 19
windows_xp_2003firefox
Re: Changing terminal colors

It gives this:
declare -x COLORTERM="gnome-terminal"
declare -x LS_COLORS=""

---------- Post added at 01:57 PM ---------- Previous post was at 01:30 PM ----------

I found /etc/DIR_COLORS. I copied it to ~/.dir_colors. Since the folders in /mnt/hgfs are green background and black text I searched and found
STICKY_OTHER_WRITABLE 30;42 # dir that is sticky and other-writable (+t,o+w)
which match with the colors I see. So I changed it to 30;43, saved the file, exit'd, then restarted terminal. But that didn't change the colors.
I have shown that .dir_colors works because I changed the color of normal files and that worked.

Any ideas?

Last edited by eddyq; 3rd November 2012 at 03:00 PM.
Reply With Quote
  #5  
Old 4th November 2012, 08:49 AM
george_toolan Online
Registered User
 
Join Date: Dec 2006
Posts: 1,718
linuxfirefox
Re: Changing terminal colors

Quote:
drwxrwxrwx
Where do you see a "+t" in there? The directory is not sticky, so try
Code:
OTHER_WRITABLE 34;42 # dir that is other-writable (o+w) and not sticky
Reply With Quote
  #6  
Old 4th November 2012, 12:01 PM
smr54 Offline
Registered User
 
Join Date: Jan 2010
Posts: 4,979
linuxchrome
Re: Changing terminal colors

To get rid of the colors you can do

\ls whatever

If you want to get rid of the colors for the entire session, then you can do

unalias ls


To change the colors used, you can copy /etc/DIR_COLORS to ~/.dir_colors (The ~ meaning your home directory and the period in front of the name means that it's a hidden directory) and play around with them to change the default color choices. To disable the system wide color choosing you have to find the script in /etc/profile.d and remove or change that.

If all you want is to change the colors used, the first solution is the best, copy DIR_COLORS to ~/.dir_colors. You can play around with the choices they make in there for various files, that is, change the numbers. For example, I think the default for a gz file is 01;31, bright red. Change that to 01;32 and it will show up as green.
Reply With Quote
  #7  
Old 4th November 2012, 07:05 PM
PabloTwo's Avatar
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,126
linuxchrome
Re: Changing terminal colors

Here is what you want in your ~/.dir_colors file:
Code:
OTHER_WRITABLE 01;34 # dir that is other-writable (o+w) and not sticky
Reply With Quote
  #8  
Old 5th November 2012, 12:58 PM
eddyq Offline
Registered User
 
Join Date: Nov 2012
Location: FL
Posts: 19
windows_xp_2003firefox
Re: Changing terminal colors

Ok, thanks ... that did it
Reply With Quote
Reply

Tags
changing, colors, terminal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing terminal colors infernosoft Using Fedora 7 24th October 2009 05:17 AM
Changing panel colors? Cassanova Using Fedora 0 14th August 2009 07:45 PM
Changing colors in terminal galahand Using Fedora 17 12th April 2006 11:06 AM
Changing Grub Colors weaved Using Fedora 4 2nd March 2005 05:31 AM
Colors in Terminal? carlwill Using Fedora 4 18th February 2005 04:18 AM


Current GMT-time: 11:05 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat