← 返回命令列表

Linux command

ov 命令

文件

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

常用示例

View a file

ov [path/to/file]

View compressed files

ov [file.gz]

View multiple files

ov [file1] [file2]

Follow a log file

ov --follow-mode [path/to/log]

View with line numbers

ov -n [path/to/file]

View in column mode

ov -d "," [data.csv]

Use as a system pager

export PAGER=ov

说明

ov is a feature-rich terminal pager that serves as an alternative to less and more. It supports compressed files (gzip, bzip2, zstd, lz4, xz), multicolor highlighting, fast opening of large files, and simultaneous viewing of multiple files. It can be used as a system-wide PAGER replacement.

参数

-n
Show line numbers.
-d _delimiter_
Column mode with specified delimiter.
-H _n_
Number of header lines to fix at top.
--follow-mode
Follow file updates (like tail -f).
--follow-all
Follow all files simultaneously.
-w
Wrap long lines.
--tab-width _n_
Tab stop width (default 8).

FAQ

What is the ov command used for?

ov is a feature-rich terminal pager that serves as an alternative to less and more. It supports compressed files (gzip, bzip2, zstd, lz4, xz), multicolor highlighting, fast opening of large files, and simultaneous viewing of multiple files. It can be used as a system-wide PAGER replacement.

How do I run a basic ov example?

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

What does -n do in ov?

Show line numbers.