Field Notes

Five shell habits I would tell my younger self

May 21, 2026

  1. Run ls with the same glob before rm.
  2. Quote your variables. Always.
  3. Start scripts with set -euo pipefail and learn what it does not cover.
  4. Keep a notes file of commands that took more than ten minutes to figure out.
  5. Prefer a dry run flag, and write one into your own scripts.

None of this is new. It just took me too long to make it automatic.

← All posts