Bash for loops sequential counting
Master bash for loops, while loops, and seq for sequential counting — iterate over files, ranges, and arrays without losing your mind.
All the articles with the tag "shell scripting".
Master bash for loops, while loops, and seq for sequential counting — iterate over files, ranges, and arrays without losing your mind.
Switch your default shell to zsh on Linux — why zsh beats bash, installation, Oh My Zsh setup, essential plugins, and the gotcha that still catches everyone.
Oh My Zsh had its moment. Here's the 2026 shell setup: Starship prompt, three killer plugins, and when to consider Fish or Nushell.
Learn systemd socket activation to start services on-demand, save RAM, and cut boot time. Includes .socket unit files, real examples, and testing with systemd-socket-activate.
Write bash scripts that don't silently fail — set -euo pipefail, error handling, input validation, and logging patterns for production scripts.
By default bash history is lost across multiple terminal sessions. Fix it with HISTAPPEND and PROMPT_COMMAND so nothing gets overwritten.
nohup, disown, and & all keep processes running after logout — but they work differently. Here's which one to reach for and why.
echo is convenient but inconsistent across systems; printf is portable and precise — know when to use each and avoid the gotchas.
Bash tricks that save keystrokes — history expansion, brace expansion, process substitution, and the shortcuts your fingers will thank you for.