Bash
Bash scripting, shell fundamentals, automation patterns, and common pitfalls.
type Command in Linux: Show Command Type and Location
Check how Bash resolves a name with type: alias, function, builtin, keyword, or file on disk. Covers -t, -a, -p, -P, and where Zsh and dash differ.

pushd and popd Commands in Linux: Navigate Directories with a Stack
Save directories to a stack with pushd, return with popd, and jump between them in Bash. Covers dirs, stack rotation, ~N shortcuts, quiet use in scripts, and common errors.

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.

Bash Heredoc: Complete Guide with Examples
Bash heredoc lets you pass multi-line text directly to a command inside a shell script. This guide covers syntax, variable expansion, indentation with <<-, SSH usage, and common mistakes.

Bash Functions
How to define and use Bash functions, pass arguments, return values, and apply best practices for writing cleaner and more maintainable scripts.

Bash Comparison Operators: Equal, Not Equal, Greater Than
Compare numbers and strings in Bash with -eq, -ne, -gt, == and !=. Covers not equal checks, greater-than tests, and when to use [ ], [[ ]], or (( )).

Bash Strict Mode: set -euo pipefail Explained
A practical guide to Bash strict mode: how set -e, set -u, set -o pipefail, and IFS change script behavior, why they catch silent failures, and when to turn them off.

Bash if, elif, and else Statements: Syntax and Examples
Write Bash conditionals with if, if else, and elif blocks. Covers test operators, file checks, commands as conditions, && and || chains, and one-line if syntax.

Bash Pattern Matching: =~ Operator and Regular Expressions
Match strings in Bash with globs, extglob, and the =~ regex operator. Use anchors, quoting, and BASH_REMATCH to test input and capture groups.

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 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.

How to Pass Arguments to a Bash Script
Read command-line input in Bash: positional parameters, $@ versus $*, default values, named --options, getopts, and fixes for common argument errors.

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.

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, $PWD and $(pwd) in scripts, 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 source Command: Load Scripts and Variables
Use source (or its dot shorthand) to run a file in your current shell, reload .bashrc, share functions between scripts, and load variables from a config file.

What Is .bashrc? When It Runs and What to Put in It
~/.bashrc controls aliases, functions, prompts, and other interactive Bash settings. See when it runs, what belongs inside it, and how to reload changes.



