I am interested in learning shell script ompletely. Can anyone suggest some good online resources?

  • 2
    Can you specify a bit what you want to do? There is too much to read for an entire lifetime based on the current question. – l0b0 Mar 15 '11 at 12:00

This answer focuses on Bash.

Probably the advanced bash scripting guide can help you. It has even be translated to French (on traduc.org).

Also read the pitfalls and the FAQ from Greg's wiki.

  • ABS is great, but maybe not the place to start learning for a complete beginner. – chris Mar 15 '11 at 16:14

The best free source for shell scripting I've seen so far: http://fog.ccsf.cc.ca.us/~gboyd/cs160b/online/index.html


You can check out this site: Writing Shell Scripts. Things have been explained in a very simple language, and the flow is quite good.


There is an upcoming blog about unix and shell. The commands are explained in simple manner. You can try it:


  • Welcome to Unix & Linux Stack Exchange! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – slm Feb 16 '14 at 1:09

It is probably worth you while reading the man page for bash (type man bash at your prompt) as it covers quite a lot of useful information in a concise manner. Also look at some of the other man pages such as test (used with if... while... statments), awk and sed. You will find other tutorials probably easier or more useful to read as a beginner, but you will definitely come back to the man pages regularly so it helps to get to know them.

My Ubuntu shell has a program called vimtutor which looks useful for learning vi.


Here is a Bash Scripting Tutorial which is good if you are a beginner. If you are new to the Linux command line here is a Linux tutorial which is also good for the beginner.

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