inotifywait: Scripts That React to Files
Use inotifywait to run shell scripts when files change, and entr to rerun a command on save. Tested gotchas: half-written files, rename saves, watch limits.
All the articles with the tag "bash".
Use inotifywait to run shell scripts when files change, and entr to rerun a command on save. Tested gotchas: half-written files, rename saves, watch limits.
Twenty powerful bash one-liners every sysadmin should know, file ops, process hunting, networking, text processing, disk analysis
You committed .env.production once. Your database credentials are in git forever. Here's how to use dotenv without shooting yourself.
Oh My Zsh had its moment. Here's the 2026 shell setup: Starship prompt, three killer plugins, and when to consider Fish or Nushell.
Stop committing broken code. Git hooks catch mistakes before they hit CI, save hours of debugging, and make your team love you.
Master bulk file renaming on Linux with rename, vidir, fd, and mmv. The right tool for every scenario from regex rewrites to visual editing.
du and df still work, but Rust-era tools like dust, duf, and fclones make disk triage faster and way less painful in 2026.
zstd -3 compresses 4-6x faster than gzip at a better ratio. Measured numbers, where xz still wins at the high end, and how to use zstd in 2026.
Named pipes (FIFOs) let you buffer and synchronize between processes. They're underused but solve real problems: queuing, coordination, and complex data flows.
Declare, iterate, slice, and manipulate bash arrays safely. Indexed and associative arrays, the @ vs * trap, and patterns that make scripts readable.
Process substitution lets you treat a command's output as a file, and feed input to a command as if it were a file. It's weird but powerful.
Bash heredocs and here strings explained: <<EOF for multiline input, <<-EOF for tab-indented blocks, <<<string for single lines, and when to use each.