Chapter 11. Your Shell

So far in this book you’ve been running commands in your bash shellbut you haven’t focused on the shell itself. In this chapter, you look at two commands that affect your use of the shell: history, which lists everything you’ve entered on the command line, and alias, which allows you to create shortcuts for commands. Both are useful, and both can save you lots of time when you’re using the command line. Laziness is a good thing when it comes to computer users, and these are definitely two commands that will help you be as lazy as possible when using your Linux box.

View Your Command-Line History

history

Every time you type a command in your shell, that command is saved in a file named .bash_history in your home directory (the ...

Get Linux: Phrasebook 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.