next up previous contents
Next: Searching a file (grep) Up: Files and the File Previous: File conventions, UNIX vs.   Contents

Viewing a file, one page at a time (more)

If your file is longer than the height of the screen then the contents of the file will fly by faster than you can read it. To prevent this from occurring use the more command instead of cat to look at files. more will stop at the end of each page and will only continue if you hit the space bar or the ``return'' key. The format for the command is:

more filename

This utility is very versatile, allowing you to go backwards as well as forwards, edit the file, continue rather than exiting automatically when you reach the end of the file, etc. You will probably find this much more useful than cat. There is a man page describing its use.



h.stilmack@jach.hawaii.edu