Linux.com

Home Learn Linux Linux Tutorials Using Bash History More Efficiently: HISTCONTROL

Using Bash History More Efficiently: HISTCONTROL

Article Source Linux Journal
July 15, 2009, 8:15 am

 

Using the HISTCONTROL variable you can control how bash stores your command history. You can tell it to ignore duplicate commands and/or to ignore commands that have leading whitespace.

When working at the command line we often end up executing some commands multiple times. The default history size is 500, too many duplicates of the same commands can fill up your history and leave you with a less then useful history. You can of course increase the size of your history list using HISTSIZE or HISTFILESIZE...

 

Read More


 

Comments

Subscribe to Comments Feed

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board