小编use*_*786的帖子

Ctrl + c 不会杀死进程

我一直在寻找答案,到目前为止还没有找到可以回答我的问题的答案。我目前正在登录我的 Ubuntu 服务器,并且在运行一个进程时,我无法在其上运行任何中断。这是我的 stty -a:

user@Ubuntu1:~$ stty -a
speed 38400 baud; rows 93; columns 200; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = M-^?; eol2 = M-^?;
swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V;
flush = ^O; min = 1; time = 0;
Run Code Online (Sandbox Code Playgroud)

我的 .bashrc 中没有任何内容可以更改中断。

这对于包括 root 在内的所有用户都是一样的。我还尝试使用不同的终端从不同的位置登录,每次都出现相同的结果。我已经使用 ssh 和 ssh -X 登录。 …

ubuntu keyboard-shortcuts terminal interrupt gnome-terminal

8
推荐指数
2
解决办法
1万
查看次数