Bourne Again Shell (bash)

Security+ 🏆 • Security Operations 🛡️ Difficulty: premium

Definition

Bash is a Unix shell and command language used to run commands interactively and to automate tasks with scripts. It’s the default shell on many Linux systems and a core tool for administrators and developers.

Examples

  • Interactive use: tail -f /var/log/syslog | grep 'error' to watch new errors as they appear.
  • A script with a shebang (#!/usr/bin/env bash) backs up a directory, logs progress, and exits non-zero on failure.

Discover 🔎

Bash is both a prompt you type into and a language you can save to a file. At the prompt, you chain commands, redirect output, and combine tools. In scripts, you capture those steps so they run the same way every time. Because bash is everywhere on Linux, learning its basics pays off across troubleshooting, automation, and security operations.

Open the interactive lesson Browse more topics

Tip: The interactive version includes progress tracking, decks, and premium deep dives.