≡ Menu

Learning bash scripting for beginners

Bash (Bourne-Again SHell) is a Linux and Unix-like system shell or command language interpreter. It is a default shell on many operating systems including Linux and Apple OS X.

If you have always used a graphic user interface like KDE or Gnome or MS-Windows or Apple OS X, you are likely to find bash shell confusing. If you spend some time with the bash shell prompt and it will be difficult for you to go back.

Learn bash

Here are a list of tutorials and helpful resources to help you learn bash scripting and bash shell itself.

1. BASH Programming – Introduction HOW-TO : This tutorials intends to help you to start programming basic-intermediate shell scripts. It does not intend to be an advanced document.

2. Advanced Bash-Scripting Guide : An in-depth exploration of the art of shell scripting. A must read to master bash shell scripting for all Unix users.

3. Learn Bash In Y Minutes : A quick tour of bash programming language.

4. BASH Frequently Asked Questions : Greg’s Wiki includes answers to many bash programming problems in Q & A format.

5. Linux Shell Scripting Tutorial : A beginners bash shell scripting handbook for new Linux users, sysadmins and school students studying Linux/Unix or computer science.

6. Bash Hackers Wiki : This wiki provide human-readable documentation and information for bash includes tons of examples.

7. Google’s Shell Style Guide : A thorough and general purpose understanding of bash programming by Google.

8. bash — Standard Shell : A thorough understanding of bash programming for Gentoo developers by Gentoo project.

10. Bash By Examples Part I, II, and III : Fundamental programming in the BASH where you will learn how to program in bash by example.

11. Bash Guide for Beginners : This is a practical guide which, while not always being too serious, tries to give real-life instead of theoretical examples.

12. Unix Shells: Bash vs Fish vs Ksh vs Tcsh vs Zsh : Great comparison cheat sheet for various Unix shells.

13. General coding style guide : This will help to make your code more readable.

14. Better bash scripting in 15 minutes : These tips and tricks will make you better at bash shell scripting.

15. Defensive bash programming : Learn how to defend your bash programs from breaking, and keep the code tidy and clean with these useful tips.

Have a favorite online bash tutorial or new books? Let’s hear about it in the comments below.

Share this on:

Comments on this entry are closed.

  • tull

    Please stop promoting horrible guides that teach unsuspecting newcomers to write bugs and not scripts.

  • I think everybody who writes code (also beginners) should take a look at code-style-guides!

    e.g.: some month ago I added some content to the oh-my-zsh wiki: https://github.com/robbyrussell/oh-my-zsh/wiki/Coding-style-guide

  • Dan okellz

    bookmarked.. i am always looking for sites that enable me to get this linux coding business in order

  • Dan okellz

    :O is this whats its all about or you hating on it?

  • I agree with Code-Style Guides. Github can now support creators with Merchandise – nice to see :-)

  • tull

    I don’t understand your comment but I would stay away from all but #4 and #6.

  • nixcraft

    The post has been updated. Thanks!

  • Dan okellz

    why is that so? mind filling me on them since i’m a noob in this

  • janet.tovar

    ==

  • Andrew

    Thank you for sharing the links related to Bash Scripting. I’m working on this now. Your website is a great source for new users trying to learn and understand everything Linux!