Bash

29 articles
Interview Preparation Advanced

Bash Projects

Five practical, portfolio-ready Bash projects that combine everything from this series — a server health checker, log analyzer, backup tool, …

Jan 20, 2026 Read more
Interview Preparation Advanced

Bash Security

Command injection risks, safe handling of secrets, quoting pitfalls that become vulnerabilities, and hardening scripts that run with …

Jan 20, 2026 Read more
Interview Preparation Advanced

Production-Grade Bash

The patterns that separate a throwaway script from a production-grade one — structure, logging, idempotency, configuration, and testing.

Jan 20, 2026 Read more
Interview Preparation Advanced

Bash + Kubernetes

Scripting Kubernetes operations with kubectl and Bash — deployment waits, rollout automation, log aggregation, and cluster audit scripts.

Jan 20, 2026 Read more
Interview Preparation Advanced

Bash + Docker

Scripting Docker operations from Bash — container entrypoints, health-check waits, cleanup automation, and building images in CI.

Jan 20, 2026 Read more
Interview Preparation Advanced

Bash + AWS CLI

Scripting AWS operations with the AWS CLI and jq — EC2 automation, S3 sync, tagging audits, and safe patterns for infrastructure scripts.

Jan 20, 2026 Read more
Interview Preparation Advanced

Log Processing

Building Bash scripts that parse, filter, rotate, and alert on log files — combining text tools with loops and conditionals into real …

Jan 20, 2026 Read more
Interview Preparation Advanced

SSH Automation

Running remote commands, copying files, and orchestrating multi-server tasks over SSH from Bash scripts, using keys instead of passwords.

Jan 20, 2026 Read more
Interview Preparation Advanced

Networking Automation

Automating connectivity checks, port scans, and API calls from Bash using curl, nc, and the standard networking commands.

Jan 20, 2026 Read more
Interview Preparation Advanced

Cron & Scheduling

Writing crontab schedules, and the environment/PATH pitfalls that make scripts behave differently under cron than in an interactive shell.

Jan 20, 2026 Read more
Interview Preparation Advanced

Signals & Trap

Handling SIGTERM, SIGINT, and other signals in Bash scripts with trap, for graceful shutdown and guaranteed cleanup.

Jan 20, 2026 Read more
Interview Preparation Advanced

Processes & Background Jobs

Running background jobs from a script, waiting for them, capturing their output, and running tasks in parallel with process control.

Jan 20, 2026 Read more
Interview Preparation Intermediate

Debugging

Debugging Bash scripts with set -x, bashdb-style tracing, shellcheck, and practical techniques for finding the exact line that's failing.

Jan 20, 2026 Read more
Interview Preparation Advanced

Exit Codes & Error Handling

Exit statuses, set -euo pipefail, trap, and building Bash scripts that fail loudly and safely instead of silently continuing after an error.

Jan 20, 2026 Read more
Interview Preparation Intermediate

Text Processing

Using grep, sed, awk, and cut inside Bash scripts to parse logs, transform config files, and build reports.

Jan 20, 2026 Read more
Interview Preparation Intermediate

Redirection & Pipes

stdin, stdout, stderr, file descriptors, redirection operators, pipes, and process substitution in Bash.

Jan 20, 2026 Read more
Interview Preparation Intermediate

File Handling

Reading, writing, appending, checking, and looping over files in Bash — the everyday file-manipulation patterns used in real scripts.

Jan 20, 2026 Read more
Interview Preparation Intermediate

Command-Line Arguments

Positional parameters, shift, getopts, and parsing both short (-e) and long (--environment) flags in Bash scripts.

Jan 20, 2026 Read more
Interview Preparation Intermediate

Functions

Defining and calling Bash functions, passing arguments, return values vs exit codes, local scope, and recursion.

Jan 20, 2026 Read more
Interview Preparation Intermediate

Arrays

Indexed and associative arrays in Bash — declaring, accessing, looping, slicing, and the quoting rules that matter.

Jan 20, 2026 Read more
Interview Preparation Beginner

Loops

for, while, and until loops in Bash — iterating over lists, files, command output, and ranges, plus break and continue.

Jan 20, 2026 Read more
Interview Preparation Beginner

Conditions

if/elif/else, case statements, and combining conditions in Bash for real decision-making logic in scripts.

Jan 20, 2026 Read more
Interview Preparation Beginner

Operators

Arithmetic, comparison, logical, and file test operators in Bash — and the crucial difference between [ ], [[ ]], and (( )).

Jan 20, 2026 Read more
Interview Preparation Beginner

Strings

String concatenation, length, substring extraction, case conversion, splitting, and comparison in Bash.

Jan 20, 2026 Read more
Interview Preparation Beginner

Shell & Terminal

Terminal vs shell explained in plain English, Bash vs sh vs Zsh, how a command actually gets executed, environment variables, PATH, and …

Jan 20, 2026 Read more
Interview Preparation Beginner

User Input

Reading interactive input with read, prompts, hidden password input, timeouts, and reading input from a file or pipe.

Jan 20, 2026 Read more
Interview Preparation Beginner

Variables

Declaring and using variables in Bash, quoting rules, variable scope, readonly and environment variables, and parameter expansion.

Jan 20, 2026 Read more
Interview Preparation Beginner

Bash Fundamentals

What Bash actually is, the shebang line, script permissions and execution, comments, and the anatomy of a first real script.

Jan 20, 2026 Read more
Learning Paths beginner

Linux Engineer Learning Path

A complete roadmap to mastering Linux — from basic commands to system administration, shell scripting, networking, security hardening, and …

Jan 18, 2025 Read more