Bash
Bash scripting, shell fundamentals, automation patterns, and common pitfalls.
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.

How to Increment and Decrement a Variable in Bash: Counter Examples
Bash provides several ways to increment and decrement a counter variable in scripts. This guide covers the +/- operators, += and -= assignment operators, and the ++ and -- shorthand with practical examples.

Bash Arrays
A complete guide to Bash arrays: create indexed and associative arrays, access elements, loop, slice, add and remove items, and check array length.

How to Create a File in Linux
Several ways to create a file in Linux from the command line: touch, redirection, cat, echo, printf, heredoc, and text editors. Includes examples for each method.

.bashrc vs .bash_profile: What is the Difference?
Understand the difference between .bashrc and .bash_profile, when each file is loaded, and where to put aliases, PATH changes, and environment variables.

How to Compare Strings in Bash
Bash string comparison using equal, not equal, regex, and pattern matching operators. Includes examples for empty strings, case-insensitive matching, and substrings.

How to Parse Command-Line Options in Bash with getopts
This guide explains how to parse command-line options in Bash with getopts, including option strings, OPTARG and OPTIND, error handling, and practical script examples.

Bash Select (Make Menus)
Learn how to use the Bash select construct to create interactive menus in shell scripts. Includes syntax, practical examples, and combining select with case.

Bash wait Command
Learn how to use the Bash wait command to wait for background processes to finish. This guide covers syntax, options, and practical scripting examples.
