Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > documentation

documentation
Thread Tools
Mac Enthusiast
Join Date: Apr 2003
Location: Ithaca, NY
Status: Offline
Reply With Quote
May 30, 2003, 09:59 AM
 
I was wondering if anyone knows of a good book/pdf/site that talks about the specific version of UNIX that's on OSX.

Also...isn't there a version of the bash shell that uses different colors to indicate different parts of commands or which color-codes ls output? If so, what do I need to do to get it?
"Leave it. Leave it, it's fine. It's fine. I WILL DESTROY YOU!" -Morbo
     
Senior User
Join Date: Jan 2003
Status: Offline
Reply With Quote
May 30, 2003, 11:36 AM
 
You might want to check out OS X unleashed. The last half of this mighty sized book is devoted to the Unix and OS X advanced topics.
15" Macbook Pro 1.83 2 GB RAM
Blackbook 13.3 Powerhouse 2 GB RAM
MacMini Dual Core 2 GB RAM (Sadly running Windows Most of the time)
Numerouse Workstations running windows and Linux. Sorry don't have the specs, I don't pay much attention to them anymore. :)
     
Mac Enthusiast
Join Date: Jul 2002
Location: Leiden, Netherlands
Status: Offline
Reply With Quote
May 30, 2003, 12:31 PM
 
Originally posted by killer_735:

Also...isn't there a version of the bash shell that uses different colors to indicate different parts of commands or which color-codes ls output? If so, what do I need to do to get it?
Yes bash "just" needs to be configured. try man bash, or if you want to gt into it faster I do recommend you read this
     
Senior User
Join Date: Jan 2001
Location: Mahwah, NJ USA
Status: Offline
Reply With Quote
May 31, 2003, 09:28 AM
 
Originally posted by killer_735:
I was wondering if anyone knows of a good book/pdf/site that talks about the specific version of UNIX that's on OSX.

Also...isn't there a version of the bash shell that uses different colors to indicate different parts of commands or which color-codes ls output? If so, what do I need to do to get it?
I heard that the O'Reilly book "Mac OS X: The Missing Manual" is good. See: http://www.oreilly.com/catalog/macosxmm2/

Well I used the Linux doc page: http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/index.html
to modify my bash prompt for the root user. I created a .bashrc file in roots home folder (/var/root) on my Mac OS X boxes. My .bashrc contains this line:

## Added for roots attention ##
PS1="\[[\033[1;31m\]\u\[\033[0m\]@\hW]\[\033[1;31m\]#\[\033[0m\] "

Then just:

source .bashrc

try it and you will see what I mean. If you don't like the red you can try other colors (see the howto). I did it so that it is obvious who I am... perhaps causing me to hesitate before I hit return on some possibly disastrous command.

The other thing you need is a "colorized" version of ls. The one that comes with Mac OS X can not do the colorizing. I think you can find one here: http://www.osxgnu.org/software/Fileutils/lsc/

I haven't tried it yet so I would be interested in how well it works for you. You may need to config it a bit for your tastes.

Linux has had color ls for quite a while. Folders are in blue, soft-links in cyan, regular files in green, files that are rwx in red, broken links have a red background... and so on. It also has a colorized version of vi which in some distributions is VERY handy. It correctly colorizes and highlights the file... automagically adjusts for what type of config file it is and whatnot.
-DU-...etc...
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:07 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2