Bash
Bash scripting, shell fundamentals, automation patterns, and common pitfalls.
How to Concatenate Strings in Bash
Concatenate strings in Bash by placing variables side by side, appending with the += operator, or formatting with printf -v. Includes examples for variables, literals, and command output.

Bash if...else Statement
A complete guide to Bash if, if...else, and if...elif...else statements with practical examples, test operators, and one-line syntax.

Bash case Statement: Match Patterns in Shell Scripts
The Bash case statement matches a value against a list of patterns and runs the corresponding block. This guide explains argument parsing, syntax, glob patterns, multiple matches, and fall-through behavior.

Linux Wildcards and Globbing Explained
How shell wildcards and globbing work in Linux: the *, ?, and [...] patterns, brace expansion, why globbing is not regex, and how to control it with quoting.

Bash Comparison Operators
Bash comparison operators compare numbers and strings with [ ], [[ ]], and (( )), including equal, not equal, greater-than, and pattern checks.

What Is /dev/null in Linux
The Linux /dev/null device discards anything written to it and returns EOF when read. This guide shows how to silence stdout, stderr, cron output, and empty files.

How to Check if a Command Exists in Bash
Check whether a command exists in Bash with command -v, capture its path, validate several dependencies, and compare type, hash, and which.

Bash Exit Command and Exit Codes
The Bash exit command terminates a shell or script and returns an exit code. This guide covers exit status, the $? variable, exit code conventions, set -e, and practical script examples.

Bash Subshells: Isolate Variables and Directory Changes
Bash subshells run commands in an isolated shell environment. This guide explains parentheses, variable scope, directory changes, command substitution, pipelines, and exit codes.

Linux Pipes Explained: How to Use the | Operator
Linux pipes connect command output to another command's input. Learn the | operator, pipefail, stderr piping, xargs, named pipes, and process substitution.

Bash Array Operations: Length, Search, Slice, and Reverse
Practical Bash array operations for checking length, finding values, slicing, reversing, iterating, appending, prepending, and removing elements.

How to Pass Arguments to a Bash Script
This guide explains how to pass arguments to Bash scripts, read positional parameters, loop over $@, set defaults, validate input, and parse flags with getopts.

Bash source Command: Load Scripts and Variables
The Bash source command executes a file in the current shell environment, making its variables and functions available to the calling script. This guide covers syntax, common uses, and practical examples.

How to Create Bash Aliases
Bash aliases let you shorten long commands into short, memorable shortcuts. This guide covers alias syntax, persistent aliases in .bashrc, and bash functions for shortcuts that take arguments.

Bash while Loop: Syntax and Examples
Bash while loop syntax and examples: infinite loops, reading files line by line, arithmetic conditions, and the break and continue statements.

Bash: Check if String Contains Substring
Four ways to check if a string contains a substring in Bash: wildcard matching, the case statement, the regex operator, and grep. Includes examples and a Quick Reference.

Bash set Command: set -e, set -x, and set -u Explained
How the bash set builtin changes shell behavior, with practical examples of set -e to exit on errors, set -u to catch unset variables, set -x to trace execution, and pipefail.



