LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 05-18-2009, 10:06 AM   #1
penguin386
LQ Newbie
 
Registered: May 2009
Posts: 7

Rep: Reputation: 1
How do I learn 'bash'?


I'm an old timer familiar with the C shell from the old UNIX days. Nowadays, the Borne Again Shell 'bash' is the default shell for Linux. Can anybody point me to some resources for learning 'bash'? The 'man bash' pages just don't do it for me.

I want to take the CompTIA Linux+ certification exam. From what I read, command line utilities and bash make up a good portion of the exam. I don't want to get confused thinking in csh when bash is really the correct answer.

Speaking of csh, here are some stupid csh tricks:

% light?
No match

% man woman divorce
Too many arguments
 
Old 05-18-2009, 10:18 AM   #2
cmnorton
Member
 
Registered: Feb 2005
Distribution: Ubuntu, Red Hat
Posts: 571

Rep: Reputation: 34
O'Reilly Books and Others

The O'Reilly books are good. There's a good book Linux Shell Scripting with Bash by Burtch.

And, nothing beats writing scripts to do various tasks as a non-privileged user.
 
Old 05-18-2009, 11:30 AM   #4
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Rep: Reputation: 30
the best way to learn here, is just to use it, daily.


you'll see quite fast it's very very useful !

Goodluck!
 
Old 05-18-2009, 11:52 AM   #5
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 51
In tldp books, lots of things are not related to bash. Some examples are buggy or not explanatory, at least for me.
 
Old 05-18-2009, 01:02 PM   #6
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Posts: 11,388
Blog Entries: 2

Rep: Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825
Well, I learned to program bash using this book, looks like it's available free online now:
http://books.google.com/books?id=q1Y...sec=frontcover

it's quite good too, if you don't like the others above.
 
Old 05-18-2009, 01:51 PM   #7
jschiwal
Moderator
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,263

Rep: Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562
The Advanced Bash Scripting Guide in the www.tldp.org website is excellent. It consists entirely of examples, which you can try out yourself as you read along. This helps you learn by utilizing post #4's advice.
 
Old 05-19-2009, 07:14 AM   #8
bostonantifan
Member
 
Registered: May 2006
Location: Leominster, Massachusetts
Distribution: Kubuntu 10.04
Posts: 56

Rep: Reputation: 15
Bash Cookbook by O'Reilly

The Bash Cookbook by O'Reilly is an excellent book for anyone wanting to learn Bash. For someone like yourself, who has experience in other shells, it's a great way to learn the differences and it has a lot of complete example scripts that are ready to run.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting 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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
trying to learn bash mpooley Linux - Software 8 04-10-2007 05:20 AM
Good book to learn bash? J_K9 Linux - Newbie 14 11-26-2004 01:38 AM
Where's the best place to learn Bash? evangelinux Programming 5 06-13-2004 11:45 PM
i want learn bash-script.. i need some resoruces, tutorials.. etc.. hunter_one Linux - General 2 10-29-2003 02:32 PM
New to Linux. Learn bash or C first? kato678 Programming 4 02-20-2002 12:48 PM


All times are GMT -5. The time now is 05:06 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration