next up previous
Next: Printing Files (lplpstat, Up: USING UNIX Previous: ChangingCreating and Removing

Looking at the Contents of a File (more, head, tail, cat)

The command more filename will display the named file page by page. To view the next page you hit the space bar. To see just the first few lines of a file use head filename. The last part of the file can be viewed via tail filename. The command cat filename will cause the entire file to be printed on the screen. This means that if the file is longer than a single screen full it will just scroll rapidly by. You can, of course, also look at a file in an editor like vi or emacs.