$ execute_some_long_command
<command is executing>
<Accidently press middle button that inserts bunch of garbage (including, for example, `rm -Rf ~/*`) into console>
如何让execute_some_long_command完成,但不执行插入的东西?
答案1
键入Ctrl+ Z(返回提示,不执行键盘缓冲区),然后fg
让运行execute_some_long_command
重新回到正轨。
至少这在我的 Fedora 14 gnome-terminal 中是有效的,用sleep 20
asexecute_some_long_command
和echo blah
as 测试了输入的垃圾。