To prevent the output of ls from scrolling by too
quickly, pipe the output to a pager, such as
less or more. The results will
be similar to the DOS command dir
somedirectory /p, because you'll
see the output one screen, or "page" at at time.
To read the contents of /etc with
less, type the following command at the shell
prompt:
To move forward a screen, press [Space]; to move back a
screen, press the [b] key; to quit, press
[q].
You can achieve the same results with more, another
pager.
You can also print the directory by piping the output to a printer
in the same way that you piped the output to your screen. If you've
configured a printer, type the following to pipe the output of a
command to the printer: