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

Popular posts from this blog

authentication failure using SSH pam_unix(sshd:auth): authentication failure;

Howto configure SPLUNK Universal Forwarder

openvpn howto make OCSP server using OpenSSL [Part2]