Freebie

Bash scripting

Bash is the standard shell on most Linux distributions. It reads your commands, evaluates them, and passes instructions to the operating system. Whether you are managing a single server, writing deployment scripts, or extracting data from log files, bash is the tool you will return to most often.

This section covers the shell from the ground up. It starts with how bash interprets commands and manages data flow, then moves through scripting, text processing, filesystem navigation, and efficiency techniques. Each page ties the technical content to real tasks you encounter in system administration and automation work.

The pages in this section are:

  • The bash shell: How bash processes commands, streams, redirection, pipelines, the environment, and remote execution
  • Writing bash scripts: Script structure, variables, control flow, functions, arrays, math, and traps
  • Text processing: grep, sed, awk, sort, cut, and the full text-tool pipeline
  • Navigating the filesystem: find, log collection, CDPATH, and system information gathering
  • Shell efficiency: History, job control, xargs, one-liners, and time-saving techniques
  • Commands reference: All commands covered in this section, with options and usage examples

The bash shell

Writing bash scripts

Text processing

Navigating the filesystem

Shell efficiency

Commands reference