CLI notes

Small habits, no aliases you will forget.


Inspect before change

ip route get 1.1.1.1
ss -tlnp
journalctl -u service -n 50 --no-pager

Diff that reads well

git diff --stat
git diff --word-diff

Find the file

rg -n "pattern" /etc /srv

Nothing here is clever. Clever is what you forget six months later.