开发者

How view 1000 line when use command on linux

Example command:

$ lo开发者_开发知识库cate .conf
$ ls

if it shows 1000 lines, how can I view all lines? In terminal, there's a restriction for xx line (I don't know)


Pipe the output to a pager like more or less.

$ locate .conf | less

For more complex output I also like to pipe into vim.

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


Pipe the long command through "less":

ls | less


Additionally to less and vim usage which is the most common case here you can also increase the buffer size of your terminal, if you are using gonme-terminal edit the profile used and set the desired number of lines.

How view 1000 line when use command on linux

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜