pg—displays files a page at a time

pg [ –number ] [ –p string ] [ –cefnrs ] [ +linenumber ]
   [ +/pattern/ ] [ filename … ]

The pg command is a filter that allows you to page through filenames one screenful at a time on a terminal. If no filename is specified or if it encounters the – filename, pg reads from standard input. Each screenful is followed by a prompt. If the user types a RETURN, another page is displayed. It allows you to back up and review something that has already passed. (See "more" on page703).

Get Linux Shells by Example 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.