From 2442abf01b7a8f89e6f9a504bbd6e4768ce8ac4c Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Fri, 19 Sep 2025 00:19:39 +0000 Subject: [PATCH] Update cheatsheets --- tldr/gzip | 4 ++-- tldr/linux/setfacl | 2 +- tldr/man | 4 ++-- tldr/sudo | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tldr/gzip b/tldr/gzip index 59055436..f725c09c 100644 --- a/tldr/gzip +++ b/tldr/gzip @@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git - Decompress a `gzip` archive specifying the output filename: -`gzip {{[-c|--stdout]}} {{[-d|--decompress]}} {{path/to/file.gz}} > {{path/to/uncompressed_file}}` +`gzip {{[-cd|--stdout --decompress]}} {{path/to/file.gz}} > {{path/to/uncompressed_file}}` - Specify the compression level. 1 is the fastest (low compression), 9 is the slowest (high compression), 6 is the default: @@ -34,4 +34,4 @@ source: https://github.com/tldr-pages/tldr.git - Display the name and reduction percentage for each file compressed or decompressed: -`gzip {{[-v|--verbose]}} {{[-d|--decompress]}} {{path/to/file.gz}}` +`gzip {{[-vd|--verbose --decompress]}} {{path/to/file.gz}}` diff --git a/tldr/linux/setfacl b/tldr/linux/setfacl index 365d3bd8..73ca8c78 100644 --- a/tldr/linux/setfacl +++ b/tldr/linux/setfacl @@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git - Modify default ACL of a file for all users: -`setfacl {{[-m|--modify]}} {{[-d|--default]}} u::rw {{path/to/file_or_directory}}` +`setfacl {{[-d|--default]}} {{[-m|--modify]}} u::rw {{path/to/file_or_directory}}` - Remove ACL of a file for a user: diff --git a/tldr/man b/tldr/man index 7fbf0818..ed129034 100644 --- a/tldr/man +++ b/tldr/man @@ -14,11 +14,11 @@ source: https://github.com/tldr-pages/tldr.git - Open the man page for a command in a browser (`BROWSER` environment variable can replace `=browser_name`): -`man {{[-Hbrowser_name|--html=browser_name]}} {{command}}` +`man {{[-H|--html=]}}{{browser_name}} {{command}}` - Display the man page for a command from section 7: -`man {{7}} {{command}}` +`man 7 {{command}}` - List all available sections for a command: diff --git a/tldr/sudo b/tldr/sudo index fb047d45..e4c58856 100644 --- a/tldr/sudo +++ b/tldr/sudo @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # sudo -> Executes a single command as the superuser or another user. +> Execute a single command as the superuser or another user. > More information: . - Run a command as the superuser: