© Philip Kirkbride 2020
P. KirkbrideBasic Linux Terminal Tips and Trickshttps://doi.org/10.1007/978-1-4842-6035-7_3

3. History and Shortcuts

Philip Kirkbride1 
(1)
Montreal, QC, Canada
 

In this chapter, we’re going to look at using shell history, built-in keyboard shortcuts for bash terminal, and file globbing. These techniques will help you move faster as you enter new commands, repeat past ones, or modify partially written ones.

History

It’s great having lots of useful commands at your fingertips, but with so many it’s easy to lose track. That’s where the history command comes in handy. The history command should come preinstalled on most Linux systems. Running the command returns a list of your last run commands.

By default most systems will only ...

Get Basic Linux Terminal Tips and Tricks: Learn to Work Quickly on the Command Line now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.