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

pwd Command in Linux: Print the Current Working Directory
The pwd command prints the current working directory in Linux. This guide covers pwd syntax, the -L and -P options, the $PWD variable, and how symlinks affect the output.

Bash For Loop: Syntax and Examples
A complete guide to the Bash for loop: standard syntax, C-style loops, arrays, ranges, break and continue, and real-world scripting examples.

Bash String Concatenation: Combine Variables and Strings
Learn how to concatenate strings in Bash using variable juxtaposition, the += operator, and printf. Practical examples for combining variables, literals, and command output.

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.
