List files of folder page by page with LS command
I'm wonder if there is some way to list all files of a folder by ls, I know how to use ls for a folders which are small but if list of files doesn't match with the screen size what should I do? there is no scroll!
pipe it into more
:
ls -la | more
Then down arrow scrolls to the next line, spacebar jumps a page at a time
more
is good, less
gives more scrolling options (up and down):
ls | less
If you want color:
ls --color=always | less -iXRS
Quit less
as if it were vi
, :q