WebFaction
Community site: login faq

Hi all,

I've tried modifying the .bashrc in my home folder to give me different colors for 'ls', but without any luck. Here's the basic thing that I'd usually do:

export CLICOLOR=1
export LSCOLORS=DxGxcxdxCxegedabagacad

But nothing changed... ideas?

Thanks!

asked 24 Nov '10, 18:12

wulftone
1259
accept rate: 0%

I found the file for CentOS, /etc/DIR_COLORS, but it's read_only, of course. Is there a way to change it for only me?

(24 Nov '10, 18:18) wulftone

Copy /etc/DIR_COLORS to your home directory as ~/.dir_colors:

cp /etc/DIR_COLORS ~/.dir_colors

You can then edit ~/.dir_colors to get the colors you want. You'll need to log out and log back in after each change.

Hope that helps!

permanent link

answered 24 Nov '10, 18:36

seanf
12.2k42136
accept rate: 37%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×3
×2
×1

question asked: 24 Nov '10, 18:12

question was seen: 3,309 times

last updated: 24 Nov '10, 18:36

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM