linux – 如何停止显示`ls`的长文件列表?

有一个大目录,其中包含远程服务器上的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.)

dawei

【声明】:淮南站长网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。