Skip to Content
Small, Sharp Software Tools
book

Small, Sharp Software Tools

by Brian P. Hogan
June 2019
Intermediate to advanced
328 pages
7h 27m
English
Pragmatic Bookshelf
Content preview from Small, Sharp Software Tools

Useful Shortcuts

You’ve already learned that typing cd returns you to your home directory. This is just one of the many shortcuts available on the command line.

First, if you press the Up arrow key on your keyboard, the previous command you issued will appear on the command line. Press Enter to execute it again. Or press Up again to see the command you typed before that. Keep pressing Up to move through the history of commands you’ve typed. Pressing Down will move forward through your command history.

Second, you can see all the commands you’ve typed with the history command. Each one will be listed with a number:

 $ ​​history
  1 tree --version
  2 man echo
  3 history

You can execute any of these commands again by typing !, followed by ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The VimL Primer

The VimL Primer

Benjamin Klein
What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz

Publisher Resources

ISBN: 9781680507003Errata Page