LinuxCommandLibrary

most

TLDR

View a file

$ most [file]
copy
View multiple files
$ most [file1] [file2]
copy
Open in binary mode
$ most -b [file]
copy
Squeeze multiple blank lines
$ most -s [file]
copy
Wrap long lines
$ most -w [file]
copy
Use as pager for man pages
$ export PAGER=most
copy
Jump to specific line
$ most +[100] [file]
copy

SYNOPSIS

most [-bstvw] [+line] [files]

DESCRIPTION

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.

PARAMETERS

-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.

KEYBOARD SHORTCUTS

Space / D

Page down.
B / U
Page up.
Enter / Down
Scroll one line down.
Up
Scroll one line up.
< / >
Go to beginning / end of file.
/ pattern
Search forward.
? pattern
Search backward.
n
Next search match.
:n
Next file.
:p
Previous file.
q / Q
Quit.
h
Help screen.

CAVEATS

Less feature-rich than less for some advanced operations. Window management has a learning curve. Not as universally available as less. Some key bindings differ from less/more conventions. May not handle extremely large files as efficiently.

HISTORY

most was written by John E. Davis in the early 1990s as part of the S-Lang library utilities. It was designed to address limitations in existing pagers, particularly adding multiple window support and better handling of wide files. The tool remains actively maintained as part of the S-Lang project.

SEE ALSO

less(1), more(1), bat(1), view(1)

> TERMINAL_GEAR

Curated for the Linux community

Raspberry Pi 5 8GB

Raspberry Pi 5 8GB

$134.50
Bmax Mini PC B2 Power Intel 5205U 8GB DDR4 256GB M.2 NVMe SSD ,HDMI 1.4&DP 1.2, USB3.2,4K Dual Display 2.4G/5G WiFi & BT5.0 Mini Desktop Computers /Office/Design

Bmax Mini PC B2 Power Intel 5205U 8GB DDR4 256GB M.2 NVMe SSD ,HDMI 1.4&DP 1.2, USB3.2,4K Dual Display 2.4G/5G WiFi & BT5.0 Mini Desktop Computers /Office/Design

$169.99
New Raspberry Pi 3 Model B+ Board Raspberry PI 3B+

New Raspberry Pi 3 Model B+ Board Raspberry PI 3B+

$54.00
Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community

Lenovo Gen 13 ThinkPad X1 Carbon Touchscreen Laptop with Intel Ultra 7 265U Processor, 14" WUXGA 100% sRGB, 32GB DDR5 RAM, 1TB NVMe Performance SSD, FHD+ IR+ RGB Camera, and Windows 11 Pro

Lenovo Gen 13 ThinkPad X1 Carbon Touchscreen Laptop with Intel Ultra 7 265U Processor, 14" WUXGA 100% sRGB, 32GB DDR5 RAM, 1TB NVMe Performance SSD, FHD+ IR+ RGB Camera, and Windows 11 Pro

$1,589.00
GMKtec Gaming PC, K11 AMD Ryzen 9 8945HS, 32GB DDR5 RAM 1TB Mini PC Desktop Computer, Oculink, Dual NIC 2.5GbE LAN, HDMI/DisplayPort/USB4*2

GMKtec Gaming PC, K11 AMD Ryzen 9 8945HS, 32GB DDR5 RAM 1TB Mini PC Desktop Computer, Oculink, Dual NIC 2.5GbE LAN, HDMI/DisplayPort/USB4*2

$739.99
Raspberry Pi 5 8GB

Raspberry Pi 5 8GB

$134.50