Bash history

This is a simple trick, but a good ‘un: if you’re wanting to hunt through the bash shell history of commands (i.e. what appears when you press the up key), use the

history

command. To search for a specific phrase, use

history | grep [phrase]

.

For more, better detail, check out this link.

Advertisements

One thought on “Bash history

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s