Bash
The GNU shell: a program that reads commands, typed or from a script, and runs them.
In more detail
Bash stands for Bourne Again Shell, a pun on the older Bourne shell it replaced. It is the default login shell on most Linux distributions and is installed on nearly every Unix-like machine, which is why scripts written for it travel well. Version 5 is current; macOS still ships the old version 3.2, which lacks features such as associative arrays.
Examples
bash --versionbash script.shbash make-fixture-repo.sh fixtureRelated terms
- shell — The program that reads the commands you type, runs them and shows the results; sh and bash are common ones.
- sh — The standard Unix shell name: whatever program /bin/sh points to, expected to behave as the POSIX standard describes.
- zsh — An interactive shell close to bash in syntax, and the default login shell on macOS since Catalina (10.15).
- BASH_VERSINFO — Built-in bash variables giving the running version: BASH_VERSION as a string and BASH_VERSINFO as an array of its parts.
- GNU — A free-software project that wrote many standard command-line tools, including Bash, grep, sed and the core file utilities.
- cd — The builtin that changes the shell's current working directory.
Taught in
- What A Shell Is, And What Bash Is — Bash Scripting & Command Line Automation
- Which Shell Am I In, And Getting Bash Five — Bash Scripting & Command Line Automation
- POSIX sh Versus Bash — Bash Scripting & Command Line Automation
- Throughput: Change Lead Time And Deployment Frequency — DevOps & Site Reliability Engineering
- Instability: Change Fail Rate And Deployment Rework Rate — DevOps & Site Reliability Engineering
- Restoration: Failed Deployment Recovery Time — DevOps & Site Reliability Engineering
- The Pitfalls Of Measurement — DevOps & Site Reliability Engineering
- Trunk-Based Development Versus Git Flow — DevOps & Site Reliability Engineering
- Continuous Integration — DevOps & Site Reliability Engineering
- Building And Versioning The Artifact — DevOps & Site Reliability Engineering
- The App In /bin That Vanished: The FHS, Distributions And Licences — CompTIA Linux+ (XK0-006) Exam Prep
- Starters, Leavers And A Service Account: Accounts On Two Families — CompTIA Linux+ (XK0-006) Exam Prep
- The Upgrade That Broke Nginx: Packages, Repositories And Pins On Both Families — CompTIA Linux+ (XK0-006) Exam Prep
- Three Audit Findings And A Phone: Password Policy, Lockouts And MFA — CompTIA Linux+ (XK0-006) Exam Prep
- The Cleanup That Emptied The Wrong Directory: Shell Scripts Under Exam Conditions — CompTIA Linux+ (XK0-006) Exam Prep
- When awk Runs Out: Python Data Types, Modules And Virtual Environments For Admins — CompTIA Linux+ (XK0-006) Exam Prep
- Forty Servers By Teatime: Ansible Playbooks, Inventories And Puppet Manifests — CompTIA Linux+ (XK0-006) Exam Prep
- The Assistant Was Confident: Reviewing AI-Generated Code, Prompts And Data — CompTIA Linux+ (XK0-006) Exam Prep