Bash history 방향키로 검색

Bash shell 을 사용하다보면 이전에 실행했든 명령어를 다시 실행 하여야 할 필요가 있다. 이때 방향키로 하나씩 위아래로 내려서 검색을 하여도 되나, 일부만 입력하고 빠르게 검색 하는 방법이 있어 소개한다.

Reference

$ vi ~/.inputrc
"\e[A": history-search-backward            # arrow up
"\e[B": history-search-forward             # arrow downCode language: PHP (php)

Bash shell 재시작.