Shell Tricks That Actually Make Life Easier (And Save Your Sanity) | Larvitz Blog
We’ve all been there. We learn
ls,cd, andgrep, and then we sort of… stop. The terminal becomes a place we live in-but we rarely bother to arrange the furniture. We accept that certain tasks take forty keystrokes, completely unaware that the shell authors solved our exact frustration sometime in 1989.Here are some tricks that aren’t exactly secret, but aren’t always taught either. To keep the peace in our extended Unix family, I’ve split these into two camps: the universal tricks that work on almost any POSIX-ish shell (like
shon FreeBSD orkshon OpenBSD), and the quality-of-life additions specific to interactive shells like Bash or Zsh.