-   Linux - Newbie (
-   -   ls screen by screen (

farkmischer 12-03-2004 12:16 PM

ls screen by screen
Is there and option to ls to list its output screen by screen? When I use ls on some of the larger folders it scrolls off the screen and I can't see it. I've looked through a couple books and the man and info files but haven't found a solution to this. Thanks, Mark

The_JinJ 12-03-2004 12:18 PM

Use a pipe to more

ls | more

perfect_circle 12-03-2004 12:18 PM


ls <something> |less

druuna 12-03-2004 12:18 PM


'Pipe' it through more or less.

$ ls | more
$ ls -latr | less

More/less are made for this task and works with the output of (almost) all programs.

Hope this helps.

perfect_circle 12-03-2004 12:29 PM

we posted this the same time (05:18 PM):D .

with more to see the next line with <enter> and the next page with <space>.
with less you do the same but you may also use the arrows up/down. (you can't go up using more)
quit with q.

All times are GMT -5. The time now is 09:52 PM.