xzless

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

Install

All systems
curl cmd.cat/xzless.sh
Debian Debian
apt-get install xz-utils
Ubuntu
apt-get install xz-utils
Alpine
apk add xz
Arch Arch Linux
pacman -S xz
image/svg+xml Kali Linux
apt-get install xz-utils
CentOS
yum install xz
Fedora
dnf install xz
Windows (WSL2)
sudo apt-get update sudo apt-get install xz-utils
OS X
brew install xz
Raspbian
apt-get install xz-utils
Docker
docker run cmd.cat/xzless xzless powered by Commando

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

  • View a compressed file:
    xzless path/to/file
  • View a compressed file and display line numbers:
    xzless --LINE-NUMBERS path/to/file
  • View a compressed file and quit if the entire file can be displayed on the first screen:
    xzless --quit-if-one-screen path/to/file

© tl;dr; authors and contributors