본문 바로가기
IT/linux

RHEL HOME/END key bind

by 어느해겨울 2022. 9. 4.

RHEL HOME/END key bind

RHEL shell에서 home키와 end키가 동작하지 않으면 bindkey를 통해 사용할 수 있다.

bindkey "\e[1~" beginning-of-line
bindkey "\e[4~" end-of-line
 
# 또는
 
bindkey "^[[1~" beginning-of-line
bindkey "^[[4~" end-of-line
 

 

해당 bindkey 명령을 ~/.profile 또는 ~/.bashrc, ~/.cshrc 등 프로파일에 등록해두면 편하다.

 

댓글