CODE A GRATIS GLOBAL SERVICE
⌕ SEARCH GRATIS GLOBAL ↗
FREE GUIDE

Learn Bash & Shell Free

Bash and shell scripting let you automate tasks and control Linux, macOS and Unix systems from the command line. These free courses, books, tools and communities will take you from your first terminal command to writing solid, reliable scripts.

10 SECTIONS · 53 RESOURCES · STATUS: [ ALL LINKS FREE ]
► INSIDE THIS GUIDE 10 SECTIONS
01

Free Online Bash and Shell Scripting Courses

8 RESOURCES
Linux Command Line Basics udacity.com

Udacity's free beginner course on the terminal, GNU Bash shell and the Linux filesystem.

Shell Workshop udacity.com

A free Udacity workshop that builds on the basics with more hands-on shell practice.

Introduction to Linux: Bash Scripting codecademy.com

Codecademy's free course on combining Bash commands into scripts to automate tasks.

Learn Bash Scripting (Codecademy) codecademy.com

Free Codecademy course on writing your own scripts and aliases to speed up your workflow.

Course Overview and the Shell (MIT Missing Semester) missing.csail.mit.edu

MIT's free lecture and notes on shell basics, part of a full course on practical command line skills.

Shell Tools and Scripting (MIT Missing Semester) missing.csail.mit.edu

Follow-up MIT lecture covering shell scripting, aliases, functions and useful command line tools.

Bash Scripting on Linux (LearnLinuxTV course page) learnlinux.tv

A free, structured written course covering everything needed to start writing Bash scripts.

learnyoubash github.com

A free interactive terminal workshop that teaches Bash fundamentals by having you write real scripts.

02

Free Bash and Shell Video Lessons and YouTube Channels

5 RESOURCES
Learn Bash Scripting by Building Five Programs (freeCodeCamp) youtube.com

A free full-length YouTube course that teaches Bash by building five small working programs.

Bash Scripting for Beginners: Complete Guide to Getting Started (LearnLinuxTV) youtube.com

The first video in an 18-episode free playlist that walks through Bash scripting step by step.

Bash Scripting on Linux (LearnLinuxTV playlist) youtube.com

The full LearnLinuxTV playlist covering variables, loops, functions, cron jobs and more.

Corey Schafer YouTube channel youtube.com

Well-produced free playlists including Linux and Mac terminal tutorials on navigation, grep, cron and dotfiles.

DistroTube Bash Scripting playlist youtube.com

A free playlist from a popular Linux YouTuber focused specifically on practical Bash scripting.

03

Free Online Bash and Shell Tutorials

9 RESOURCES
Bash Scripting Tutorial (Ryan's Tutorials) ryanstutorials.net

A clear 8-part written tutorial covering variables, input, arithmetic, if statements and loops with examples.

Linux Tutorial for Beginners (Ryan's Tutorials) ryanstutorials.net

Free companion tutorial covering the Linux command line basics you need before scripting.

Bash Scripting Tutorial: Linux Shell Script and Command Line for Beginners (freeCodeCamp) freecodecamp.org

A long free written guide covering shell scripting fundamentals from the ground up.

Use Bash Scripting to Enhance Your Productivity (freeCodeCamp) freecodecamp.org

A practical freeCodeCamp article on using Bash scripts to automate everyday tasks.

The Bash Guide (Bash Academy) guide.bash.academy

A free, thorough guide covering both beginner and advanced Bash concepts with built-in exercises.

Bash Guide for Beginners (The Linux Documentation Project) tldp.org

A classic free guide with real-life examples, bridging the gap between quick HOWTOs and full references.

Learn Bash in Y Minutes learnxinyminutes.com

A free, dense single-page tour of Bash syntax for people who already know how to program.

bash-handbook github.com

A free, well-organized GitHub handbook covering Bash basics through more advanced scripting topics.

BashGuide (Greg's Wiki) mywiki.wooledge.org

A highly respected free community guide focused on teaching correct, portable Bash practices.

04

Free Online Bash and Shell Practice and Interactive Exercises

7 RESOURCES
Learn Shell learnshell.org

A free interactive tutorial where you type real shell commands in the browser and get instant feedback.

Bash track on Exercism exercism.org

Nearly 100 free Bash exercises with automated feedback and optional human mentoring.

Shell Scripting collection on Codewars codewars.com

Free coding challenges (kata) specifically for practicing shell scripting skills.

Bash Basics collection on Codewars codewars.com

A free beginner-friendly set of Bash kata covering loops, file checks and other fundamentals.

OverTheWire: Bandit overthewire.org

A free wargame that teaches Linux command line and shell basics through a series of SSH-based challenges.

ShellCheck online shellcheck.net

Paste any shell script and get free instant analysis showing bugs and bad practices to fix.

explainshell.com explainshell.com

Paste a shell command and see each part of it explained using the actual man page text, completely free.

05

Free Bash and Shell Books and Documentation

7 RESOURCES
The Linux Command Line (William Shotts) linuxcommand.org

A free, Creative Commons-licensed book taking you from first keystrokes to writing full Bash programs.

Advanced Bash-Scripting Guide tldp.org

A free, extremely thorough reference of roughly 1000 pages covering nearly every shell scripting technique.

GNU Bash Manual gnu.org

The official, authoritative reference manual for Bash from the GNU Project, free in HTML and PDF.

Bash Guide for Beginners (TLDP, HTML edition) tldp.org

The browsable HTML version of Machtelt Garrels' free practical guide to Bash scripting.

FullBashGuide (Greg's Wiki) mywiki.wooledge.org

A free single-page compilation of the whole BashGuide for offline reading or quick searching.

bash(1) Linux manual page man7.org

The canonical Bash man page, free and always available directly from your terminal or online.

Google Shell Style Guide google.github.io

Google's free public style guide on writing clean, safe, maintainable shell scripts.

06

Free Bash and Shell IDEs, Editors and Developer Tools

4 RESOURCES
ShellCheck (GitHub) github.com

A free, open source static analysis tool that catches common bugs and bad patterns in shell scripts.

Bash IDE (VS Code extension) marketplace.visualstudio.com

A free VS Code language server for Bash with autocompletion, symbol lookup and jump to definition.

Shell script IDE (VS Code extension pack) marketplace.visualstudio.com

A free bundle of VS Code extensions that turns the editor into a fuller shell scripting IDE.

explainshell (GitHub source) github.com

The free open source project behind explainshell.com, usable locally if you want your own instance.

07

Free Bash and Shell Podcasts

1 RESOURCES
Command Line Heroes redhat.com

A free, award-winning Red Hat podcast on the history and people behind command line and open source tools.

08

Free Bash and Shell Cheat Sheets and References

3 RESOURCES
Bash scripting cheatsheet (devhints.io) devhints.io

A free, no-frills quick reference covering variables, conditionals, string manipulation and functions.

Bash Cheat Sheet and Quick Reference (quickref.me) quickref.me

A free, well-organized visual cheat sheet covering the most common Bash syntax and patterns.

Bash/Shell Cheatsheets (Codecademy) codecademy.com

A set of free reference cheat sheets covering Bash scripting concepts taught in Codecademy's courses.

09

Free Bash and Shell Communities and Help

4 RESOURCES
r/bash reddit.com

A free community forum for asking Bash scripting questions and sharing scripts and techniques.

Unix and Linux Stack Exchange unix.stackexchange.com

A free Q&A site for Unix and Linux questions, with a large, active tag for Bash and shell scripting.

Stack Overflow bash tag stackoverflow.com

Tens of thousands of free, answered questions covering nearly every Bash scripting problem you might hit.

Greg's Wiki BashFAQ mywiki.wooledge.org

A free, community-maintained list of answers to the most frequently asked Bash scripting questions.

10

Free Bash and Shell Project Ideas and Real-World Practice

5 RESOURCES
Bash Scripting Projects for Beginners (Medium) medium.com

A free article listing practical starter projects like backup scripts and file organizers.

10 Bash Script Code Challenges for Beginners (Codecademy) codecademy.com

Ten free, concrete coding challenges to practice writing real Bash scripts.

12 Best Shell Scripting Project Ideas for Beginners placementpreparation.io

A free list of project ideas ranging from simple file tools to server health check scripts.

Projects in Bash/Shell (Codecademy) codecademy.com

Free guided project briefs that let you apply Bash scripting skills to small real programs.

51+ Unique Bash Project Ideas In Various Categories bestprojectideas.com

A free, large list of project ideas across categories to keep practicing past the beginner stage.