Linux command
most 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
View a file
most [file]
View multiple files
most [file1] [file2]
Open in binary mode
most -b [file]
Squeeze multiple blank lines
most -s [file]
Wrap long lines
most -w [file]
Use as pager for man pages
export PAGER=most
Jump to specific line
most +[100] [file]
说明
most is a paging program for viewing text files, designed as an alternative to more and less. It can display multiple windows and supports left-right scrolling for wide files. Unlike less, most can open multiple windows on the same screen, allowing side-by-side file viewing or different positions in the same file. Window commands split the display and navigate between panes. Color and ANSI escape sequence support makes it suitable as a pager for man pages and colorized output. Long lines can be wrapped or scrolled horizontally. The search function supports regular expressions. Mark positions can be set and recalled for navigation. The interface is generally more visual than less, with status information displayed prominently. Binary mode handles non-text files without cluttering the display. Squeeze mode collapses multiple blank lines, useful for files with excessive spacing.
参数
- -b
- Binary mode (display control characters).
- -s
- Squeeze multiple blank lines into one.
- -t
- Disable tab expansion.
- -v
- Display control characters visually.
- -w
- Wrap long lines instead of truncating.
- + _line_
- Start at specified line number.
- -d
- Disable color ANSI sequences.
- -c
- Make strokes color pages.
FAQ
What is the most command used for?
most is a paging program for viewing text files, designed as an alternative to more and less. It can display multiple windows and supports left-right scrolling for wide files. Unlike less, most can open multiple windows on the same screen, allowing side-by-side file viewing or different positions in the same file. Window commands split the display and navigate between panes. Color and ANSI escape sequence support makes it suitable as a pager for man pages and colorized output. Long lines can be wrapped or scrolled horizontally. The search function supports regular expressions. Mark positions can be set and recalled for navigation. The interface is generally more visual than less, with status information displayed prominently. Binary mode handles non-text files without cluttering the display. Squeeze mode collapses multiple blank lines, useful for files with excessive spacing.
How do I run a basic most example?
Run `most [file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -b do in most?
Binary mode (display control characters).