Bash — Command Reference
Bash's most used commands — the language of shell scripts and automation. Each comes with an explanation and a working example.
7 categories · 13 commands
🖥️
Output & Input
Printing with echo and reading with read.
echoread📦
Variables
Variable definition and expansion.
variableCommand substitution $( )🔢
Numbers & Arithmetic
Arithmetic operations.
$(( )) arithmetic✍️
Text
Text length, uppercase, and substring extraction.
Length & uppercaseSubtext & replacement📋
Array
Arrays and their elements.
Array🔁
Condition & Loop
Decision making and repetition.
if / test [ ]forwhile🧩
Functions & Pipes
Functions and command chaining.
FunctionPipe ( | )