linuxfromscratch:12.1:161-creating_the_etcinputrc_file

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

다음 판
이전 판
linuxfromscratch:12.1:161-creating_the_etcinputrc_file [2024/05/18 16:47] – 만듦 - 바깥 편집 127.0.0.1linuxfromscratch:12.1:161-creating_the_etcinputrc_file [2024/06/15 13:22] (현재) – [9.8. etc/inputrc 파일 만들기] baecy
줄 1: 줄 1:
 +^  Linux From Scratch - Version 12.1-systemd  ^^^
 +^  Chapter 9. System Configuration  ^^^
 +|[[.:160-configuring_the_system_locale|이전]]  |  [[.:09-System Configuration|위로]] / [[.:12.1|처음으로]]  |  [[.:162-creating_the_etcshells_file|다음]]|
  
 +|시스템 로캘 설정  |  /etc/shells 파일 생성|
 +
 +----
 +
 +===== 9.8. etc/inputrc 파일 만들기 ===== 
 +
 +''inputrc'' 파일은 사용자가 터미널에서 명령을 입력하는 동안 편집 기능을 제공하는 readline 라이브러리의 구성 파일입니다. 키보드 입력을 특정 동작으로 변환하는 방식으로 작동합니다. Readline은 bash와 대부분의 다른 셸은 물론 다른 많은 애플리케이션에서 사용됩니다.
 +
 +대부분의 경우 사용자별 설정이 필요하지 않으므로 아래 명령은 로그인하는 모든 사람이 사용하는 전역 ''/etc/inputrc''를 만듭니다. 나중에 사용자별로 기본값을 재정의해야 하는 경우 수정된 매핑을 사용하여 사용자의 홈 디렉터리에 ''.inputrc'' 파일을 만들 수 있습니다.
 +
 +''inputrc'' 파일을 편집하는 방법에 대한 자세한 내용은 **info bash**를 실행하고 //Readline Init File// 섹션의 정보를 참조하세요. ''info readline''도 좋은 정보 소스입니다.
 +
 +아래는 다양한 옵션의 기능을 설명하는 주석과 함께 일반적인 전역 ''inputrc''입니다. 주석은 명령과 같은 줄에 있을 수 없다는 점에 유의하세요. 다음 명령을 사용하여 파일을 만듭니다.
 +
 +<code bash>
 +cat > /etc/inputrc << "EOF"
 +# Begin /etc/inputrc
 +# Modified by Chris Lynn <roryo@roryo.dynup.net>
 +
 +# Allow the command prompt to wrap to the next line
 +set horizontal-scroll-mode Off
 +
 +# Enable 8-bit input
 +set meta-flag On
 +set input-meta On
 +
 +# Turns off 8th bit stripping
 +set convert-meta Off
 +
 +# Keep the 8th bit for display
 +set output-meta On
 +
 +# none, visible or audible
 +set bell-style none
 +
 +# All of the following map the escape sequence of the value
 +# contained in the 1st argument to the readline specific functions
 +"\eOd": backward-word
 +"\eOc": forward-word
 +
 +# for linux console
 +"\e[1~": beginning-of-line
 +"\e[4~": end-of-line
 +"\e[5~": beginning-of-history
 +"\e[6~": end-of-history
 +"\e[3~": delete-char
 +"\e[2~": quoted-insert
 +
 +# for xterm
 +"\eOH": beginning-of-line
 +"\eOF": end-of-line
 +
 +# for Konsole
 +"\e[H": beginning-of-line
 +"\e[F": end-of-line
 +
 +# End /etc/inputrc
 +EOF
 +</code>
  • linuxfromscratch/12.1/161-creating_the_etcinputrc_file.1716050856.txt.gz
  • 마지막으로 수정됨: 2024/05/18 16:47
  • 저자 127.0.0.1