Skip to main content

Shell Scripting Guide

Welcome to the Shell Scripting Guide. This section is designed to help you understand what shell scripts are good at, how to write them safely, and how to use them to automate real command-line tasks.

This guide focuses on Unix-like shell scripting, especially Bash-style scripts used on macOS, Linux, and WSL.

Getting started

If shell scripts still feel abstract, start here. These pages explain what scripts are, why people use them, and how they fit into normal terminal work.

Core building blocks

These guides cover the shell scripting concepts you will use constantly: passing input, reacting to success or failure, and controlling how a script flows.

Writing safer scripts

Shell scripts are powerful because they work directly with files, commands, and system state. These pages focus on writing scripts that are useful without being careless.

Real tasks

This is where shell scripting becomes practical: turning repeated command-line work into small tools you can actually keep and reuse.