Ответ 1
Ctrl-u
- Cut everything before the cursor
Другие ярлыки Bash,
- Ctrl-a
Move cursor to beginning of line
- Ctrl-e
Move cursor to end of line
- Ctrl-b
Move cursor back one word
- Ctrl-f
Move cursor forward one word
- Ctrl-w
Cut the last word
- Ctrl-k
Cut everything after the cursor
- Ctrl-y
Paste the last thing to be cut
- Ctrl-_
Undo
И узнайте больше на странице руководства для оболочки bash: man bash
Дополнительная шпаргалка командной строки bash: http://www.bigsmoke.us/readline/shortcuts
Смотрите документацию здесь: http://www.gnu.org/software/bash/manual/bashref.html#Commands-For-Killing
Обязательно: Узнайте больше о Bash, Linux и Tech через комиксы Джулии: https://twitter.com/b0rk/media