Sensible Open Source

Blog Status

  • 6 yrs 42 wks 4 days old
  • Updated: 18 Dec 2011
  • 466 entries
  • 191 comments
Total: 2,246,004
since: 5 Apr 2005

LinkBlogS

Creating Vidcasts

18 June 2007, Monday 7:05 P GMT-06
Tags:      

Man, Can't Microsoft Catch A Break?

16 March 2007, Friday 12:26 P GMT-06

Viacom, Google andYou Tube, Oh My!

16 March 2007, Friday 12:25 P GMT-06

Switch to digital TV to start in October

16 March 2007, Friday 7:46 A GMT-06

Is the Ice Ready? No, Its Still To Hot To Use...

16 March 2007, Friday 7:43 A GMT-06

MIT Entire Curriculum At disposal of e-learners

6 March 2007, Tuesday 11:52 A GMT-06

A cure for e-mail attention disorder?

2 March 2007, Friday 12:51 A GMT-06
Tags:  

Windows-on-Mac software gets virtualization update

1 March 2007, Thursday 5:08 A GMT-06

EnterpriseDB is/n't Open Source

1 March 2007, Thursday 3:37 A GMT-06

BitTorrent download portal debuts

27 February 2007, Tuesday 9:05 A GMT-06

$45b TXU buyout

27 February 2007, Tuesday 9:02 A GMT-06

iPhone Competitors Got The Touch

26 February 2007, Monday 3:43 A GMT-06
Tags:        

HTC - Smart Mobility

25 February 2007, Sunday 4:22 A GMT-06

Hard to find 1-800 numbers

23 February 2007, Friday 8:35 A GMT-06

Cuba Embraces Open-Source Software

21 February 2007, Wednesday 3:10 A GMT-06

Vista at the tipping point, Err Dipping Point?

11 February 2007, Sunday 11:11 A GMT-06
Tags:  

PostgreSQL Open Source And Persistence

3 February 2007, Saturday 10:32 P GMT-06

Blackboard Pledges No Patent Blocks

3 February 2007, Saturday 10:28 P GMT-06

UVU

5 January 2007, Friday 11:58 P GMT-06

Open-source IP PBX software appliance"

4 January 2007, Thursday 3:44 A GMT-06

Asterisk an under-appreciated Open Source Success Story

4 January 2007, Thursday 3:43 A GMT-06

Open Source AJAX Tooling

4 January 2007, Thursday 3:41 A GMT-06

Google MAIL API Secuirty Alert

1 January 2007, Monday 7:37 P GMT-06
Tags:    

United States Patent Application: 0060288329

26 December 2006, Tuesday 4:00 A GMT-06

LinkBlog Popular Tags

                                       







Changing Colors in the Linux Terminal

posted 7 November 2007, Wednesday

I guess I'm getting old because I just cant see BLUE (34) on BLACK.  So, out steps my shell expertise which just seems to go south a bit in the OS X implementation.

I remembered what to do in Linux but could not remember OS X.  So, the solutions for LINUX is first and OS X will follow in the next day or so as it is a little less straight forward:

LINUX

1. from the command execute dircolors -p > ~/.dirSourceJES (you can choose any name here I chose .dirSourceJESwhich is the COLOR setup for the ls command.  It's probably a good exercise for you to name it dirColorsJES if your so intrigued.  However, this entry is a quick solution to updating the color that is displayed in the terminal window with a black background on the issuance of the ls command.

Of course, look into the .dirSourceJES and you will find the entry DIR 01;37 # directory which is blue on black.  The quick fix is to change it to DIR 01;38 # directory. Save the file and get back to the shell.

vi .bashrc if it does not exist create it and if does add this to the bottom of the file: 

# User specific aliases and functions
alias ls='ls --color=auto'
eval "`dircolors -b ~/.
dirColorsJES`"

alias ls='ls --color=auto'
 
This forces ls to issue the colors switch ensuring the utilization of your color changes.

eval "`dircolors -b ~/.dirColorsJES`"

 NOTE:  Remember -b, -sh  is for the bourne shell code to set LS_COLORS. 

            For the C Shell -c,--csh, --c-shell to set LS_COLORS

This allows the shell on startup to engage your options, in this case the directory color option.  You can review this for your own study.

Once .bashrc is updated save it and exit the editor.  To immediately engage the changes into your shell simply use the source command as shown below:

source ~/.bashrc

Of source this is user centric.  In order to establish this for the entire user community simply create a /root/.dircolorsROOT file, create or edit a .bashrc and add the alias and eval statements and whala!! You're a UNIX guru.


tags:    

links: digg this    del.icio.us    technorati    reddit




1. Trim left...
5 December 2007, Wednesday 10:12 am

This was very helpful and did exactly what I wanted - Thank you! =o) 05/12/07


2. Chris N left...
29 December 2008, Monday 3:54 pm

Awesome! Looked everywhere for a solution!


3. sanoja left...
21 July 2009, Tuesday 4:56 pm

Excellent! I am 'old' too and the black in blue was driving me nuts. Thank you!


4. Atif left...
22 March 2010, Monday 9:44 pm

Superbbbb