The bash tricks list: Quick cd to previous directory cd -
Set the default text editor echo ‘export EDITOR=“vim”’ >> ~/.bashrc
Change the default history size (number of commands that are saved) echo “HISTSIZE=2000” >> ~/.bash_profile echo “HISTFILESIZE=2000” >> ~/.bash_profile
Find and run a command from history history | grep search_keyword !n #where n is the command number
or you can use CTRL-r ...