xzless

Display text from xz and lzma compressed files. See also: less. More information: https://manned.org/xzless.

xzless path/to/file

xzless --LINE-NUMBERS path/to/file

xzless --quit-if-one-screen path/to/file