Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Jul 16, 2014 7:48 am 
Offline
Newbie

Joined: Mon May 12, 2014 8:46 pm
Posts: 4
Hi

After much googling I'm still trying to figure out what I presume is a fairly easy task - I want to change directories in bash from blue (which can be pretty hard to read) to yellow globally, not on a per-user basis. The sites I've looked at can't even agree whether I should use /etc/dir_color or /etc/DIR_COLOR and give pretty diverse instructions.

As a newbie at the whole server thing I would guess this should be a single file edit somewhere? Any help would be greatly appreciated.


Top
   
PostPosted: Fri Jul 18, 2014 6:34 am 
Offline
Senior Member

Joined: Wed Nov 16, 2011 8:15 am
Posts: 70
I haven't played around with changing the colors of folders and files, but have done so with the prompt.
I've used this site before: https://wiki.archlinux.org/index.php/Color_Bash_Prompt when working on my prompt formatting.

For folders, have a look for info on the ~/.dircolors folder and /usr/bin/dircolors executable.
My .bashrc has the color set using "--color=auto" for a few aliases. But I'm guessing there are other options.


Hope this helps a little.
Cheers,
Nap

_________________
My VPS system:
(Ubuntu 14.04 LTS, Kernel 3.15.4-x86_64, Apache 2.4.7, MariaDB Server 5.5.40, MariaDB Client 5.5.41, PHP 5.5.9, ISPConfig 3.0.5.4p5, Webmin, PureFTP & Quota, phpMyAdmin, postfix, dovecot, amavis, clamav, spamassassin, awstats, fail2ban, Jailkit, bind9, vlogger, webalizer)


Top
   
PostPosted: Sun Jul 20, 2014 10:01 am 
Offline
Newbie

Joined: Mon May 12, 2014 8:46 pm
Posts: 4
Thanks for the reply. In the end I edited /home/<user>/.dircolors and edited the line DIR 01;33 # directory to a new color, then copied the .dircolors file into /etc/skel (and to all existing home directories) so that new users I create have the same change made. Not quite the way I wanted to fix it but the end result is the same so I guess that's a win.

At that point the link you provided was most helpful as it contains the necessary color codes.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group