Monday, May 6, 2024
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 1142  / 1 Year ago, fri, may 5, 2023, 12:27:01

This is perhaps a really simple thing to do, however, after looking on the internet I can not find the fast answer anywhere.



Suppose that I have this Ubuntu server running in a really small virtualbox.



When I use a command I sometimes can only see a small part of the results. What should I add after command to make me able to scroll through the results page by page?


More From » command-line

 Answers
5

ANSWER: scrolling or "piping" through results can be achieved in some interesting ways.




  • more



Add | more after a command. This will enable you to scroll through results line by line by either hitting enter. When you reach the end of the list you return to the command-line. This can also be done by hitting space.




  • less or sensible-pager



Add | less after a command. With this you can search through results with the arrow keys, which enables you not only to go up or down, but also to go to the right and left. You explicitly need to leave to command-line with q. There is a whole bunch of other useful commands to add to this one.




  • most



Using most adds some more functionality to more and is used in the same way as less. I had to enable/install this first however. What I liked about this one is that you can see your progress in the results in the form of a percentage and current line/column.



My favorite would be less because it is the most easy to use.


[#25759] Friday, May 5, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
dersol

Total Points: 78
Total Questions: 100
Total Answers: 124

Location: Christmas Island
Member since Mon, Oct 19, 2020
4 Years ago
;