Shell & Bash

Overview

About Shell & Bash

The shell is the text interface that sits between you and the operating system, and Bash is the shell you'll find on almost every Linux server, in most containers, and in CI pipelines everywhere. This course starts from zero: Terminal & Shell Basics explains what a terminal, a shell and a command actually are, while Navigating the Filesystem and Permissions & Ownership cover the Linux directory tree, file operations, and the users, groups and chmod rules that decide who can do what.

Pipes & Redirection introduces the idea that makes the shell so powerful — small tools chained together through stdin, stdout and stderr. Text Processing then puts that to work with grep, sed and awk, so you can search, transform and summarize logs and data files without opening an editor.

Processes & Job Control covers what is running on a machine and how to manage it — signals, background jobs, and keeping long tasks alive. Shell Environment & Config explains variables, PATH, dotfiles and aliases, so your terminal works the way you want it to.

From there you'll move from typing commands to writing programs. Bash Scripting Fundamentals and Loops, Functions & Arrays teach the language itself — quoting, conditionals, exit codes and reusable functions. Networking & Remote Work covers SSH, file transfer and HTTP from the command line, and Automation & Scheduling shows how to run scripts on a schedule with cron and systemd timers. Finally, Debugging & Robust Scripts covers strict mode, ShellCheck, error handling and portability, so your scripts fail loudly and safely instead of silently deleting the wrong thing.

Content

12 modules
01

Terminal & Shell Basics

What a terminal, a shell and a command are, how Bash differs from zsh and sh, the anatomy of a command, and finding help with man, --help and tldr.

Terminal Bash vs zsh man pages
02

Navigating the Filesystem

The Linux directory tree, absolute vs relative paths, and moving, copying, finding and deleting files with cd, ls, cp, mv, rm and find — plus globbing and wildcards.

Paths find Globbing
03

Permissions & Ownership

Users and groups, read/write/execute bits, chmod in symbolic and octal form, chown, umask, and using sudo safely without running everything as root.

chmod chown sudo
04

Pipes & Redirection

Standard input, output and error, redirecting with >, >> and 2>&1, chaining tools with pipes, tee, xargs, and here-documents.

stdin / stdout Pipes xargs
05

Text Processing

Searching with grep and regular expressions, editing streams with sed, column-based reports with awk, and sort, uniq, cut, wc and tr for slicing logs and CSV files.

grep sed awk
06

Processes & Job Control

Inspecting processes with ps, top and htop, sending signals with kill, foreground and background jobs, nohup, and keeping sessions alive with tmux.

Signals Jobs tmux
07

Shell Environment & Config

Shell vs environment variables, export, PATH, .bashrc vs .bash_profile, aliases, prompt customization, and history shortcuts that save you hours.

PATH .bashrc Aliases
08

Bash Scripting Fundamentals

The shebang, making scripts executable, variables and quoting rules, command substitution, arguments, exit codes, and if / case conditionals with test and [[ ]].

Shebang Quoting Exit Codes
09

Loops, Functions & Arrays

for, while and until loops, reading files line by line, writing reusable functions with local variables and return values, and indexed and associative arrays.

Loops Functions Arrays
10

Networking & Remote Work

SSH and key-based login, ssh config files, copying files with scp and rsync, calling APIs with curl, and quick network checks with ping, ss and dig.

SSH rsync curl
11

Automation & Scheduling

Scheduling jobs with cron and systemd timers, logging script output, file archiving with tar and gzip, and automating backups and routine maintenance tasks.

cron systemd Backups
12

Debugging & Robust Scripts

Strict mode with set -euo pipefail, tracing with set -x, trap for cleanup, linting with ShellCheck, safe handling of filenames, and writing portable POSIX-friendly scripts.

set -euo pipefail ShellCheck trap

What You Can Do After This Course

By the end of the curriculum you'll have written several real scripts and gone from your first ls to automating work on remote servers. Concretely, you'll be able to:

Work comfortably in any terminal — navigate the filesystem, manage files and permissions, and find help for any command without leaving the shell.

Process text and logs like a pro — combine pipes, redirection, grep, sed and awk to search, filter and summarize data in a single line.

Control processes and your environment — manage running jobs and signals, configure PATH and dotfiles, and keep long tasks alive with tmux.

Write real Bash scripts — use variables, quoting, conditionals, loops, functions and arrays to turn repeated commands into reusable tools.

Work on remote machines and automate them — connect over SSH, sync files with rsync, call APIs with curl, and schedule jobs with cron or systemd timers.

Ship scripts you can trust — use strict mode, trap and ShellCheck to catch bugs early and write scripts that fail safely and run anywhere.