← 返回命令列表

Linux command

yap 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

View file contents

yap [file]

View with specific page size

yap -[20] [file]

View without screen clearing

yap -c [file]

Suppress underline handling

yap -u [file]

Display line numbers

yap -n [file]

Start at specific line

yap +[100] [file]

说明

yap (Yet Another Pager) is a text file viewer that displays content one screenful at a time. Its distinguishing feature is bidirectional paging, allowing navigation both forwards and backwards even when reading from standard input. The pager handles nroff-formatted text, processing underline and bold sequences appropriately for the terminal. It supports searching, marking positions, and various navigation commands similar to other Unix pagers.

参数

-_num_
Set page size to num lines.
-c
Scroll instead of clearing screen for each page.
-u
Suppress underline processing for nroff output.
-n
Display line numbers.
-q
Only exit on explicit quit command.
+_command_
Execute command on startup.

FAQ

What is the yap command used for?

yap (Yet Another Pager) is a text file viewer that displays content one screenful at a time. Its distinguishing feature is bidirectional paging, allowing navigation both forwards and backwards even when reading from standard input. The pager handles nroff-formatted text, processing underline and bold sequences appropriately for the terminal. It supports searching, marking positions, and various navigation commands similar to other Unix pagers.

How do I run a basic yap example?

Run `yap [file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -_num_ do in yap?

Set page size to num lines.