简短的解决方案:
您的终端正在等待输入。您可以使用CTRL+中断它C。
说明:
您输入了`xit. 反引号 ( `) 在 bash 中用于命令替换(如$())。由于领先`,bash 现在期望结束`,但未找到。如果您想将命令分布在多行上,这实际上是一个有用的功能,例如
cat `find -name "foo*" |
> grep .txt`
#will output the content of foo.txt
Run Code Online (Sandbox Code Playgroud)
如果您现在输入缺少的`,您的 bash 将执行您的命令(并且可能会因未知命令而崩溃)。CTRL因此,您应该使用+取消启动的命令C并exit再次输入。