Improving on history

By Sandra Henry-Stocker

The Linux history command allows users to repeat commands without retyping them and to look over a list of commands that they’ve recently used, but that’s just the obvious stuff. It is also highly configurable, allows you to pick and choose what you reuse (e.g., complete commands or portions of commands), and control what commands are recorded. In today’s post, we’re going to run through the basics and then explore some of the more interesting behaviors of the history command.

The basics

Typing “history” and getting a list of previously entered commands is the command’s most obvious use. Pressing the up arrow until you reach a command that you want to repeat and hitting enter to rerun it is next. And, as you probably know, you can also use the down arrow. In fact, you can scroll up and down your list of previously entered commands to review them or rerun them.

To read this article in full or to leave a comment, please click here

From: Network World

FacebookTwitterGoogle+LinkedInEvernotePocketGoogle Gmail