Skip to content

Tag: bash

All the articles with the tag "bash".

find Flags You Keep Forgetting

find Flags You Keep Forgetting

Practical find command examples: -mtime, -newer, -type, -exec vs xargs, -not, size filters. The patterns you google every time.

Why kill -9 Is the Wrong Default

Why kill -9 Is the Wrong Default

· Updated:

kill -9 skips cleanup and leaves locks and half-written data behind. SIGTERM vs SIGKILL, the graceful shutdown pattern, pkill, and how systemd does it.

Understanding printf vs echo in Bash

Understanding printf vs echo in Bash

· Updated:

echo is convenient but inconsistent across systems; printf is portable and precise, know when to use each and avoid the gotchas.

Mastering xargs in Linux

Mastering xargs in Linux

xargs turns stdin into arguments, build complex pipelines, run parallel jobs, and handle filenames with spaces without breaking everything.