views:

263

answers:

10

Just started a new coop workterm and using a solaris machine with bash as my shell. Know basic commands in bash:

ls, pwd, find, cd, mkdir, rm, grep ...

That is basically all I need to do my job (working in java with intellij), but would like to be able to use my machine better. Can anybody recommend a book for me? Hopping for some light reading. I really liked the easy steps book for c++ (when I was just staring c++) and the head first design pattern book.

I already have several unix reference books but hoping for something that is easier (and more fun) to sit down and read.

Would like to learn some tricks and stuff like that about how solaris and more generally unix/linux work but also how the underlying OS functions.

Update: Thanks for the input. I already have this book: Unix in a Nutshell by O'Reilly . This book is a great reference but it does not make good reading. (It is hard to sit down and just read it cover to cover.) I was hoping that someone could suggest something that was fun to read. Similar to the head first design pattern book.

+1  A: 

It's not a book, but will help you a lot: http://www.grymoire.com/Unix/, and of course the linux documentation project http://tldp.org/

Alberto Zaccagni
TLDP for Solaris?
Kimvais
He said "about how solaris and more generally unix/linux work" and also look what you could find on the tldp: tldp.org/LDP/Bash-Beginners-Guide/html/, ins't this exactly what he is looking for? ;)
Alberto Zaccagni
@Montecristo Fair enough :)
Kimvais
+1  A: 

O'reilly's Learning the Unix OS, also Unix Power tools is a reputation of being funny (I do not know how much funny do/can you expect from an OS book)

Oh yeah, and don't forget the SO sister sites; superuser.com and serverfault.com - they are a good source when "how do I foo bar on solaris" google fails :)

Kimvais
+2  A: 

Also if you are keen on harnessing the power of unix utilities check out:
Unix Power Tools

sateesh
+4  A: 

I very highly recommend The Unix Programming Environment by Brian Kernighan and Rob Pike. Don't let the title fool you; it starts with the basics of using the shell and file system too.

alt text

From the Publisher:

Designed for first-time and experienced users, this book describes the UNIX®programming environment and philosophy in detail. Readers will gain an understanding not only of how to use the system, its components, and the programs, but also how these fit into the total environment.

Judge Maygarden
+100. It's hard to find a better book than this to learn UNIX. Even if you read all the others on the planet, you should *definitely* own a copy of this.
Noufal Ibrahim
+1  A: 

Others had already given you books and internet resource recommendation. What i also suggest you look into is the man page. (or info page in linux). It doesn't really "teach" you programming, but you can learn about the various usage and options of the tools in the *nix that you have.

ghostdog74
Yeah I have been reading a lot of man pages to learn specific things but I was more interested in something that I could read on the bus. You know? Something light and crunchy.
sixtyfootersdude
+1  A: 

For bash at TLDP there's Mendel Cooper's Advanced Bash-Scripting Guide. And PDF.

This tutorial assumes no previous knowledge of scripting or programming, but progresses rapidly toward an intermediate/advanced level of instruction . . . all the while sneaking in little nuggets of UNIX® wisdom and lore. It serves as a textbook, a manual for self-study, and a reference and source of knowledge on shell scripting techniques. The exercises and heavily-commented examples invite active reader participation, under the premise that the only way to really learn scripting is to write scripts.

martin clayton
+1  A: 

Your Unix: The Ultimate Guide by Sumithaba das

Narayan
+1  A: 

For bash, ksh, tcsh and sed/awk/grep,
Unix shells by Example (Ellie Quigley) is good as a primer on both using shells as your CLI and scripting with them:
Unix Shells by Example

For other tricks, the Hacks line from O'Reilly are excellent (Linux Server Hacks, Linux Desktop Hacks, Ubuntu Hacks, BSD hacks, Linux Multimedia Hacks)

SuperMagic
+1  A: 

Jon Lasser's Think Unix.

I read the book in a few days back in 2002, and that was enough to get me started in Unix -- enough where I could learn the rest over the course of years on my own. Think Unix will teach you the principles behind Unix, which is what you need.

Jesse Kempf
+1  A: 

Here's another site that is invaluable for learning Bash and especially to unlearn some bad habits and techniques.

Dennis Williamson