Viewing File Contents with more

As you become more familiar with Unix, you’ll want to start exploring the contents of files, including some program files and scripts as well as files you (eventually) create. One of the easiest ways to view file contents is to use the more command, which tells Unix to display files onscreen, a page at a time. As shown in Figure 1.8, long files are displayed with “More” at the bottom of each screen so that you can move through the file one screen at a time using the z.

Figure 1.8. The more command lets you move through a file one screen at a time, providing a “More” indicator at the bottom of each screen.

To view a file with more:

1.
more fortunes At the prompt, type more plus the name ...

Get Unix Third Edition: Visual Quickstart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.