LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Scrolling after ls... (http://www.linuxquestions.org/questions/linux-general-1/scrolling-after-ls-36866/)

psyklops 11-30-2002 01:57 AM

Scrolling after ls...
 
How do I scroll through the output after I run ls. It seems most of the info is to much to fit on the screen. I used ls --more but that didn't seem to work.

moses 11-30-2002 02:02 AM

ls | less
(man ls)
(man less)
or make sure your terminal has a scrollbar and just scroll back up using
that.

psyklops 11-30-2002 02:04 AM

Great Moses! Got it.

trickykid 11-30-2002 03:10 AM

You can always hold Shift and press the Page Up and Page Down also to scroll as well.

psyklops 11-30-2002 03:45 AM

Just tried it trickykid. Thanks.

Ciccio 11-30-2002 12:04 PM

or you can run ls -l | more (man more) or if it is a BIG BIG amount of data you can forward it to a file and then use an editor to see it:

$ ls -l /home/myplace > /home/lsl.out
$ vi lsl.out #vi is an editor (man vi)


All times are GMT -5. The time now is 11:37 AM.