Useful bash history

Written by Ren West on October 6th, 2004

Putting the following in your .bashrc (either in your home, or globally if its just a desktop), will increase the number of entries your bash history will show (when typing `history` or using C-r). The HISTCONTROL variable will cause your bash_history to ignore consecutive commands, so only one will display in your history.

export HISTSIZE=1000
export HISTFILESIZE=1000
export HISTCONTROL=ignoredups

Share and Enjoy:
  • Digg
  • Facebook
  • del.icio.us
  • Reddit
  • email
  • StumbleUpon
  • Google Bookmarks
 

Leave a Comment





Page optimized by WP Minify WordPress Plugin