开发者

How view 1000 line when use command on linux

开发者 https://www.devze.com 2023-03-05 18:17 出处:网络
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 lik

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

精彩评论

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