linux · raspberry pi

Terminal keystroke conveniences…

Pi Terminal

There are a bazillion hidden gems in Linux Terminals.  When getting started its easy to forget how much has been done to make your life easy and simply stick with what you know.  I went for years without knowing Ctrl-R – and now, I can’t live without it.

Here are some top level ones to try out today.

Ctrl-R – Search back through your command history.

Ctrl-A – Jump to the start of your entry.

Ctrl-E – Jump to the end of your entry.

This article has a great list of others you should peruse:

HowToGeek – Survey of key combinations.

Another trick to keep in your toolbox – say you’ve entered a command but then realized that you forgot a step.  Use Ctrl-A to jump to the beginning, insert a “#” symbol there and press enter.

That simple bit turns the command into a “comment” – storing it into your history, allowing you to enter the missed step, then simply walk back into your history to get at the command again.

Have fun!

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.