gpt4 book ai didi

linux - 在 linux 上使用命令时如何查看 1000 行

转载 作者:太空宇宙 更新时间:2023-11-04 11:38:11 24 4
gpt4 key购买 nike

示例命令:

$ locate .conf
$ ls

如果显示 1000 行,我如何查看所有行?在终端中,xx行有限制(我不知道)

最佳答案

将输出通过管道传送到寻呼机,例如 moreless

$ locate .conf | less

对于更复杂的输出,我还喜欢通过管道输入 vim

$ g++ -E something.cpp | vi -

关于linux - 在 linux 上使用命令时如何查看 1000 行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6004435/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com