Sh

Bash

beginner

Your terminal's native tongue. Learn it and become one with the shell.

Bash (Bourne Again Shell) is the command interpreter on most Linux systems and macOS. It's a programming language that runs directly in your terminal. Automate repetitive tasks, write deployment scripts, glue other programs together — Bash is the universal duct tape of computing.

Shell ScriptingSystem AdministrationCI/CD PipelinesTask AutomationDevOps
0%
0/8 lessons

Setup

Bash is already on your system if you're on Linux or macOS. Windows users can get it via WSL2 or Git Bash.

Bash
# Option 1: WSL2 (recommended — real Linux environment)
wsl --install          # install WSL2 + Ubuntu
wsl                    # start a Linux shell

# Option 2: Git Bash (lightweight, comes with Git)
# Download Git from git-scm.com — includes Git Bash

# Check which shell:
echo $BASH_VERSION

# Windows Terminal is a great terminal emulator:
winget install Microsoft.WindowsTerminal

Lessons

1
Your First Script
A Bash script is just a text file with commands in it. The magic is in the sheba
2
Variables & Input
Bash variables have no types. Everything is a string. This is either simple or c
3
Control Flow
Bash conditionals look strange at first. The [ ... ] is actually a command (test
4
Functions
Bash functions are reusable blocks of code. They work differently from functions
5
Working with Files
Bash was born to manipulate files. Half the Unix philosophy is "everything is a
6
Pipes & Redirection
Pipes are how Unix tools talk to each other. Each small tool does one thing — pi
7
Mini Project: Backup Script
A practical backup script that compresses directories, keeps the last N backups,
8
Bash Cheatsheet
Daily commands and scripting syntax on one page.