← Back to Bash Course | Chapter 1: Setup & Basics | Lesson 1 of 12

What is Bash?

In this page:

  1. What is Bash?

What is Bash?

Bash (Bourne Again SHell) is a command-line interpreter and scripting language that serves as the default shell on most Linux distributions and, until recently, on macOS. It lets you run commands interactively and automate repetitive tasks by writing scripts. Bash is central to DevOps, system administration, automation pipelines, and server management -- essentially every Linux server you'll ever work with relies on it.

Note: Even if you never write a large Bash script, comfort with Bash is essential -- nearly every deployment pipeline, Docker container, and CI/CD system relies on shell commands under the hood.

Example: What is Bash?

bash
#!/bin/bash
echo "Hello, World!"

Login to run this code

C/C++/Java/PHP execution requires a free account. Your code is saved — you'll land right back in the editor after logging in.