Bash command line emacs edit mode

Опубликовано: 29 Сентябрь 2024
на канале: Jogger Shyr
2,559
1

Introduce bash command line editing skill in emacs mode
1. Bash shell option: set -o [option]
2. Move character: CTRL-B, CTRL-F (ie. arrow left and right)
3. Move word: ESC-B, ESC-F
4. Delete character: DEL, Backspace key
5. Delete word: ESC-D
6. Retrieve (yank) last delete: CTRL-Y
7. Move begin of line: CTRL-A
8. Move end of line: CTRL-E
9. Delete till end of line: CTRL-K
10. Search previous command: CTRL-R
11. Fix command: fc