Shell (1 blogmarks)

← Blogmarks

Shell Tricks That Actually Make Life Easier (And Save Your Sanity)

https://blog.hofstede.it/shell-tricks-that-actually-make-life-easier-and-save-your-sanity/

The shell is a toolbox, not an obstacle course. You don’t need to memorize all of these today. Pick just one trick, force it into your daily habits for a week, and then pick another. Stop letting the terminal push you around, and start rearranging the furniture. It’s your house now.

This post is jam packed with useful stuff it took me years to pick up. Plenty of new-to-me things that I’m looking forward to integrating into my workflows.

I've been thinking about what things I would add if I were writing my own version of this article:

  •  <command> -- include a space in front of a command to exclude it from shell history
  • fc -- edit the last command
  • command <some alias> -- ignore the alias (e.g. I have cat aliased to bat, but maybe I actually want to run cat)