LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-06-2004, 03:11 PM   #1
Paxmaster
Member
 
Registered: Jun 2004
Location: unknown place in NYC
Distribution: Ubuntu
Posts: 377

Rep: Reputation: 30
how do i chage the color of a file or a directory in a bash shell


hi there

How could i change the colors of a file and a directory, for instance in a bash prompt, i have kde as a desktop with fc2 linux i know there a way because my director colors is black and the files is white and the .jpg is pink, so is there a way to change the color, I don't think the PS1 is the answer or maybe
 
Old 10-06-2004, 03:37 PM   #2
jxi
Member
 
Registered: Feb 2003
Location: Richmond VA
Distribution: Slackware 11 -- CentOS 4.4
Posts: 115

Rep: Reputation: 15
do you have a file in you home directory called something like .dir_colors ?

If not copy it from /etc/DIR_COLORS. Edit it with kedit, kate, whatever. The instructions for changing colors are within.

Then (assuming your shell is bash, otherwise see man dircolors):

eval `dircolors -b ~/.dir_colors`

HTH

John
 
Old 10-06-2004, 08:20 PM   #3
Paxmaster
Member
 
Registered: Jun 2004
Location: unknown place in NYC
Distribution: Ubuntu
Posts: 377

Original Poster
Rep: Reputation: 30
Talking

thanks
 
Old 10-17-2004, 11:21 PM   #4
drakethegreat
Member
 
Registered: Sep 2004
Location: Seattle, WA
Distribution: None (Linux doesn't support my basic hardware)
Posts: 61

Rep: Reputation: 15
Thanks
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash color shell L0CTiT3 *BSD 5 10-22-2008 10:59 AM
bash: cd: My: No such file or directory Doug.Gentry Fedora 2 12-05-2004 02:53 PM
Specifying target directory for command in bash shell script? spectrescape Programming 1 07-22-2004 05:37 PM
how change text (and background) color within the bash shell? Xavius Linux - Newbie 4 03-29-2004 02:21 PM
Shell and file/directory color coding? l0f33t Linux - General 9 08-07-2003 10:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:33 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration