Partial directory list in linux

linux, shell

Solution

One option is to pipe the output to `less` or `more`

ls | less

or

ls | more

Problem

If I have a directory containing hundreds of files, using `ls`, `ls-l`, or `dir` gives me a list that's too long for the command terminal screen, so I'm unable to see most of the files in the directory. I recall there being some argument for `ls` that allows one to scroll through the list in short increments, but can't seem to find it.

Original source