Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 13th May 2006, 05:03 PM
Beepa's Avatar
Beepa Offline
Registered User
 
Join Date: May 2006
Location: Great Plains (USA)
Posts: 72
Talking terminal color meanings

This will probably seem like a silly arse question to some but can someone tell me where I can find information that explains what the different colors of text mean in my terminal window like when I ls a folder?. Some file names are yellow, some blue, some green, some even blink red?? I have not found where it says what color is indicates what? I see where you can change to different color schemes but I dont see a breakdown of the schemes themselves??
__________________
Beepa/Fatal/Silently Sam
"Time held me green and dying
Though I sang in my chains like the sea.
"
quote from "Fern Hill" by Dylan Thomas
Reply With Quote
  #2  
Old 13th May 2006, 05:15 PM
markkuk Offline
Registered User
 
Join Date: Apr 2005
Location: Finland
Posts: 5,076
The color scheme is defined in /etc/DIR_COLORS, see the comments in that file for explanation.
Reply With Quote
  #3  
Old 13th May 2006, 05:18 PM
Firewing1's Avatar
Firewing1 Offline
Administrator
 
Join Date: Dec 2004
Location: Canada
Age: 22
Posts: 9,224
AKAIK, green = executable black = non-executable, red = broken link or RPM file, purple = images / media blue = folder
Firewing1
__________________
[+] My open source software and blog
[+] Some of my howtos: (for full list, click here)
Reply With Quote
  #4  
Old 13th May 2006, 06:20 PM
MgFrobozz's Avatar
MgFrobozz Offline
Registered User
 
Join Date: Dec 2005
Posts: 54
For "ls --colors", the default is controlled by an environmental variable called LS_COLORS. To find your settings ...
Code:
echo $LS_COLORS
There doesn't appear to be a man page that covers the variables or color values, but you can play around with them easily ...
Code:
export LS_COLORS="no=00:fi=00:di=00;36:ln=00;36:pi=40;33..."
The string "di" appears to represent directories, "fi" represents files, "ln" represents links, etc. The colors (which appear as a number or number;number) seem to be the same scheme used by the prompts ($PS1, $PS2, etc) ...
Code:
# Working directory in title bar, green prompt:
# 0;30m black
# 0;31m red
# 0;32m green
# 0;33m brown
# 0;34m blue
# In triplet a;b;c a is foreground b is background
PS1="\[\e]2;\w\a\e[37;41;1m\]>\[\e[0m\] "
See also http://www-128.ibm.com/developerwork...tip-prompt/#h1
Reply With Quote
  #5  
Old 13th May 2006, 07:08 PM
Tashiro Offline
Retired Community Manager
 
Join Date: May 2004
Posts: 1,149
Or you could let "file" tell you what kind of file it is.
Code:
file <filename>
Tashiro
__________________
Respect the FedoraForum.org guidelines
Reply With Quote
  #6  
Old 13th May 2006, 10:19 PM
Beepa's Avatar
Beepa Offline
Registered User
 
Join Date: May 2006
Location: Great Plains (USA)
Posts: 72
Thumbs up Thank you everyone

Thank you all! You have given me plenty to go on. I appreciate the responses
__________________
Beepa/Fatal/Silently Sam
"Time held me green and dying
Though I sang in my chains like the sea.
"
quote from "Fern Hill" by Dylan Thomas
Reply With Quote
  #7  
Old 13th May 2006, 10:53 PM
jim's Avatar
jim Offline
Retired Community Manager & Avid Drinker Of Suds
 
Join Date: Feb 2005
Location: Rochester NY
Age: 38
Posts: 4,176
This thread has some good info
renamed the title
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile

please remember to say if you problem was solved

Did you get your id10t award today?
Reply With Quote
Reply

Tags
color, meanings, 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
tweaking terminal syntax highlight color...Help aznranndydrman Using Fedora 2 4th July 2007 11:55 PM
Terminal Color/Resolution sooqing Using Fedora 2 29th September 2006 03:33 PM
Enabling color in a terminal. nivis Using Fedora 3 11th August 2005 12:27 AM
Change the color of your name in the terminal jim Guides & Solutions (No Questions) 7 15th April 2005 11:29 PM


Current GMT-time: 07:58 (Thursday, 23-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