edit or create and add these command in to file ~/.inputrc
# Press up-arrow for previous matching command "\e[A":history-search-backward # # Press down-arrow for next matching command "\e[B":history-search-forward
edit or create and add these command in to file ~/.inputrc
# Press up-arrow for previous matching command "\e[A":history-search-backward # # Press down-arrow for next matching command "\e[B":history-search-forward