From 866045c716a05715da632ca7f53a39ee2b529a68 Mon Sep 17 00:00:00 2001 From: Premnaath Date: Sun, 14 May 2023 03:09:53 +0530 Subject: [PATCH] xzless: add examples (#10179) * xzless: add examples * Apply suggestions from code review Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --------- Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --- pages/common/xzless.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pages/common/xzless.md b/pages/common/xzless.md index fb83766f8a..3965631f10 100644 --- a/pages/common/xzless.md +++ b/pages/common/xzless.md @@ -4,6 +4,14 @@ > See also: `less`. > More information: . -- Open a compressed file: +- View a compressed file: -`xzless {{path/to/archive.xz}}` +`xzless {{path/to/archive}}` + +- View a compressed file and display line numbers: + +`xzless --LINE-NUMBERS {{path/to/archive}}` + +- View a compressed file and quit if the entire file can be displayed on the first screen: + +`xzless --quit-if-one-screen {{path/to/archive}}`