Shell and Bash Roadmap 2026
Command-line fluency and Bash scripting: navigation, text tools, pipes, scripts, error handling and automation.
4 stages · 7 units · Beginner · about 40 hours · Last reviewed 19 November 2026
What is a shell and bash?
Shell and Bash is the command-line skill set built around the Unix shell, with Bash as the most common one on Linux servers and developer machines. It is used to move around the filesystem, process text, chain programs together, and write scripts that automate repetitive tasks such as backups, log cleanup and deployments.
Step-by-step shell and bash roadmap
- 1
Command Line
Beginner · about 12 hours
Everyday use.
- Basics
Command-line basics are the commands for moving through the filesystem and managing files, plus the built-in ways to look up what a command does. They sit at the start of the Shell and Bash path because every later skill, from pipes to scripts, assumes you can navigate and read documentation.
- Streams
Streams are the three data channels every Unix process uses: standard input, standard output and standard error. Redirection and pipes connect these channels between files and programs, and text tools such as grep, sed, awk, sort and cut transform the data flowing through them. This is the core idea behind composing small commands.
- Basics
- 2
Bash Scripting
Beginner · about 12 hours
Automate.
- Script Basics
Script basics cover the building blocks of a Bash script: the shebang line, variables, quoting rules, conditions and loops. Quoting decides how the shell splits and expands text, which makes it the most common source of beginner bugs. This unit marks the shift from typing single commands to writing reusable programs.
- Structure
Script structure is how a Bash program is organised for reuse: functions, positional arguments, option parsing, and reading input from users, pipes and files. It sits between simple scripts and robust tooling, since well-structured scripts take parameters, return exit codes and read data line by line instead of hardcoding paths.
- Script Basics
- 3
Robust Scripts
Beginner · about 9 hours
Reliability.
- Safety
Script safety means writing Bash that fails loudly and predictably instead of continuing after an error. It covers exit codes, set -e, set -u and pipefail, trap handlers for cleanup, and tools like bash -x and ShellCheck for finding bugs. It sits in the robust-scripts stage because unsafe scripts can delete or overwrite real data.
- Portability
Portability is about writing shell scripts that behave the same across systems by knowing the difference between POSIX sh and Bash. Features like arrays, [[ ]] and process substitution are Bash extensions, while minimal systems such as Alpine's ash or Debian's dash may only support POSIX syntax. It is the last check before sharing a script.
- Safety
- 4
Automation
Intermediate
Use it daily.
- Scheduling and Tools
Scheduling and tools covers running scripts automatically and building practical utilities with them. Cron and systemd timers run jobs on a schedule, while everyday scripts handle backups, log rotation, bulk renaming and health checks. It is the capstone where shell skills turn into saved time on real systems.
- Scheduling and Tools
Frequently asked questions
Ready to practise for interviews?
Practise shell and bash questions with an AI mock interviewer and get feedback on your answers.