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

前端之家收集整理的这篇文章主要介绍了linux – 如何停止显示`ls`的长文件列表?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

有一个大目录,其中包含远程服务器上的100k文件,我输入命令:ls in my putty.

它开始显示一个很长的文件列表,似乎永远不会结束.

如何在不关闭腻子计划的情况下阻止它?

最佳答案
如果您使用SSH,则可以使用转义序列.
例如要发送中断,请按:

输入,〜和B.

“enter”当然不是键入的,只需按回车键(我想“重置”当前的命令缓冲区)

其他有趣的

终止超时会话

输入,〜和.

发送转义字符

输入,〜和〜

您可以列出这些命令

输入,〜和?

在我的系统上面打印:

  1. # ~?
  2. Supported escape sequences:
  3. ~. - terminate connection (and any multiplexed sessions)
  4. ~B - send a BREAK to the remote system
  5. ~C - open a command line
  6. ~R - Request rekey (SSH protocol 2 only)
  7. ~^Z - suspend ssh
  8. ~# - list forwarded connections
  9. ~& - background ssh (when waiting for connections to terminate)
  10. ~? - this message
  11. ~~ - send the escape character by typing it twice
  12. (Note that escapes are only recognized immediately after newline.)

猜你在找的Linux相关文章