12. Your Shell

So far in this book you’ve been running commands in your bash shell, but you haven’t focused on the shell itself. In this chapter, you look at commands that affect your use of the shell: history, which lists everything you’ve entered on the command line, alias, which allows you to create shortcuts for commands, and function, which is like alias times twenty. All are useful, and all 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 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 ...

Get Linux Phrasebook, Second Edition 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.