There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash driver drivers error ethernet excel freeze gaming google gpu graphics hard drive hardware hdmi internet laptop malware memory modem monitor motherboard network printer problem ram registry repair router security slow software sound trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Console Colors

Reply  
Thread Tools
Squashman's Avatar
Trusted Advisor with 18,705 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
Experience: Bocks of Rox
05-Sep-2003, 07:28 AM #1
Console Colors
Does anyone know what file controls the colors used on the system console?

Green = Executable File
Blue = Directory.
etc.....

Running RedHat 9
Squashman's Avatar
Trusted Advisor with 18,705 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
Experience: Bocks of Rox
05-Sep-2003, 07:58 AM #2
Nevermind I found it.

/etc/DIR_COLORS

But what I really wanted to do was set the prompt to a different color as well. System wide for all users.
soup4you2's Avatar
Member with 71 posts.
 
Join Date: Jul 2003
08-Sep-2003, 10:22 AM #3
you can also specify the directory colors by use of the PS2 variable in your login script..
where PS1 will set your prompt

ie. Here's mine.. it wont work since you dont have the rest of my script but you will get the jist of it..

PS1="$COLOR3$COLOR1$COLOR2--($COLOR1\u$COLOR3@$COLOR1\h$COLOR2)$COLOR2=($COLOR1\#$COLOR3|$COLOR1$GRAD1$ COLOR2)=$COLOR2($COLOR1\$(date+%H:%M)$COLOR3|$COLOR1\$(date+%m/%d/%Y)$COLOR2)--$COLOR1$COLOR3$COLOR4\n$COLOR3$COLOR1$COLOR2($COLOR1\$$COLOR3:$COLOR1\w$COL OR2)$COLOR1$COLOR2=>$COLOR4"

PS2="$COLOR2$COLOR1$COLOR3-$COLOR4 "


where earlier i declaired COLOR1.....etc... to certain Ansi codes.

i wish i could remember but there's a way to display what your current ones are set to.. it's been a long time since i've played with this and that has ended up leaving my brain.. or it could be the imense hangover i have right now..
__________________
Soup's Website
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 04:17 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.