Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have the Orielly's "Learning bash". I also refer to Advanced Bash-Scripting Guide( ).

Any other good books on the subject ?


locked by HopelessN00b Jan 12 '15 at 16:49

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: help center.

closed as off-topic by HopelessN00b Jan 12 '15 at 16:49

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

Duplicate:… – Dennis Williamson Jan 24 '10 at 6:00
wow, if those two resources don't answer your shell scripting question, I'm not sure I even want to know what you're trying to do – Greeblesnort Jan 26 '10 at 19:21
up vote 3 down vote accepted

Learning the Bash Shell along with Classic Shell Scripting, followed by Bash Cookbook.

I would suggest charging through the first two books, without worrying too much about remembering it all. Reference them as you want to do something that you remember reading about but don't recall how to actually do. And come back to them a few a months later and learn new things from them.

Note, this is coming from the perspective of a linux admin, so I lean toward the niceties of bash over the more pure sh. It is only the rare script that I bother to actually make sh compatible. Also, I don't consider tcsh to be a legitimate scripting language.


Not a book, but a must have.

Keep BashPitfalls under your pillow because it'll teach you how you should NOT code in bash.


When you say "shell scripting" it appears you mean bash scripting?

If you mean "shell" are you worried about writing portable shell code?

This isn't an answer; you should have put your questions in the comments. – gareth_bowles Jan 26 '10 at 19:55
I don' think I can apply comments yet? – Derek Schrock Jan 28 '10 at 14:49

I prefer "The Korn Shell" book by Anatole Olozak. Korn shell and Posix shell are almost identical. This is very handy for writing portable shell scripts. The books serves as both a good tutorial and long(er) term reference.

+1 to all the suggestions about BashPitfalls, and the various Shell Cookbooks.


Not the answer you're looking for? Browse other questions tagged or ask your own question.