In bash, how does one clear the current input?

前端 未结 11 2059
礼貌的吻别
礼貌的吻别 2020-12-04 05:56

Suppose in bash you start writing a command like:

$ rm -rf /foo/bar/really/long/path/here

and then realize you don\'t want to execute this

11条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-04 06:11

    Found a short reference at http://www.ice2o.com/bash_quick_ref.html while searching.

    ctrl + e (if not at the end of the line) plus ctrl + u will do it.

提交回复
热议问题