在 Bash 提示中,为什么 Control+x 和 Backspace 会清除当前行?

Bel*_*dez 5 linux shell bash

我错误地发现了这一点:Control+x其次是Backspace

有谁知道为什么这会清除线路?有什么文件吗?

小智 12

是的。来自man bash

   Killing and Yanking
       kill-line (C-k)
              Kill the text from point to the end of the line.
       backward-kill-line (C-x Rubout)
              Kill backward to the beginning of the line.
Run Code Online (Sandbox Code Playgroud)