Monday, August 13, 2018 [Tweets] [Favorites]

Henrik’s Favorite Command-Line Shortcuts

Henrik Warne (Reddit):

Most people I have worked with use both arrow-up and ctrl-r when repeating commands. However, very few are familiar with escape-dot and repeating commands from the history list. Since I use all four ways very frequently, I thought I would write a post to spread the word.

If you have “Use Option as Meta key” checked in Terminal’s preferences, you can also use Option-Period, which is much easier to type, to insert the last argument of the previous command.

The p modifier to prevent executing the command recalled from the history was new to me.

Previously: Things I Wish I’d Known About Bash, Mac Terminal Tips, Craig’s Terminal Tips.

Comments

Stay up-to-date by subscribing to the Comments RSS Feed for this post.

Leave a Comment