tip n trik part 3 (Increase bash history storage)

edit your home .bashrc,and add this line
export HISTSIZE=100000
 export HISTFILE=~/.bash_history


becoming like this
 # .bashrc
 # User specific aliases and functions
 
 alias rm='rm -i'
 alias cp='cp -i'
 alias mv='mv -i'

 export HISTSIZE=100000
 export HISTFILE=~/.bash_history

 # Source global definitions
 if [ -f /etc/bashrc ]; then
        . /etc/bashrc
 fi


reload the configuration

source ~/.bashrc

and your bash hisrtory will increasing,it can save 100000 command.you also can change the HISTFILE target.

Alhamdulillah.

Comments