Viewing Files
So how do you look at a file? There are a host of programs that do
that. One is "cat" which copies the contents of files to the terminal:
"cat junk" types one file, and "cat junk temp" types out two. In the
second example, the files are concatenated and displayed onto the
terminal. If they are long files, they will probably scroll right off
the screen.
The program "more" allows you to look at a file one screenful at a
time. (To use "more", type "more filename".) Use the [SPACE BAR] to go
to the next screen when you see:
More--(n%)
Pressing the [RETURN] key will display the next line. Press [h] to get
a list of the other commands available in "more". After you've become
familiar with "more", you may wish to look at the "less" program which
does even more than "more".
Click here to go to the top of the
chapter.