LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Ls command (https://www.linuxquestions.org/questions/linux-newbie-8/ls-command-253077/)

rphemby 11-09-2004 11:12 PM

Ls command
 
I am new to linux. After reading the man page and my Linux command summary book I still don't understand how to see a directory listing one page at a time. Which switch do I use to only see one page listing of a directory?

btmiller 11-09-2004 11:14 PM

ls | less is what I think you want to do (your post isn't totally clear). In the shell a vertical bar | pipes the result of one command to another. In the case, the output of ls is piped to less which displays it one page at a time (you may scroll back and forth through the output).

jax8 11-09-2004 11:15 PM

there is no switch to see it one page at a time, however you can "pipe" it to the more command like this

ls | more


type this into terminal

-By the way your post was perfectly clear to me

ror 11-09-2004 11:22 PM

hehe, now we can get into a more vs less war ;)

rphemby 11-09-2004 11:39 PM

Thanks guys, think I got it now.


All times are GMT -5. The time now is 03:10 AM.