COMMANDER1.0
← All guides
LEARN / GUIDE

Bash basics

Bash interprets shell syntax before a program receives its arguments. Variables, wildcards and substitutions can change the resulting argument list.

What to remember

A newline or semicolon separates commands. && runs the next command after success; || runs it after failure. Never paste commands you do not understand.

An example to inspect

mkdir -p -- ./build && ls -- ./build
Try the related tool ↗
Examples target GNU/Linux and Bash. Read your locally installed manual before applying commands to important data.