home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam    

UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: pcat Chapter 2
UNIX Commands
Next: Reference: pic
 

pg



pg

 [

options

] [

files

]

Display the named files on a terminal, one page at a time. After each screen is displayed, you are prompted to display the next page by pressing the RETURN key. Press h for help with additional commands; press q to quit. See also more .

Options

-c

Clear screen (same as -c of more ).

-e

Do not pause between files.

-f

Do not split long lines.

-n

Issue a pg command without waiting for a carriage return ( more works this way).

-p str

Use string str for the command prompt. The special variable %d displays the page number.

-r

Restricted mode; shell escapes aren't allowed.

-s

Display messages in standout mode (reverse video).

- n

Use n lines for each window (default is a full screen).

+ num

Begin displaying at line number num .

+/ pat

Begin displaying at first line containing pattern pat .

Example



pg -p 'Page %d :' 



file


Previous: Reference: pcat UNIX in a Nutshell: System V Edition Next: Reference: pic
Reference: pcat Book Index Reference: pic

The UNIX CD Bookshelf Navigation The UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System










??????????????@Mail.ru