有一个大目录,其中包含远程服务器上的100k文件,我输入命令:ls in my putty.
它开始显示一个很长的文件列表,似乎永远不会结束.
如何在不关闭腻子计划的情况下阻止它?
最佳答案
如果您使用SSH,则可以使用转义序列.
例如要发送中断,请按:
输入,和B.
“enter”当然不是键入的,只需按回车键(我想“重置”当前的命令缓冲区)
其他有趣的
终止超时会话
输入,和.
发送转义字符
输入,和
您可以列出这些命令
输入,和?
在我的系统上面打印:
# ~?
Supported escape sequences:
~. - terminate connection (and any multiplexed sessions)
~B - send a BREAK to the remote system
~C - open a command line
~R - Request rekey (SSH protocol 2 only)
~^Z - suspend ssh
~# - list forwarded connections
~& - background ssh (when waiting for connections to terminate)
~? - this message
~~ - send the escape character by typing it twice
(Note that escapes are only recognized immediately after newline.)