From 1581eedcdb85262ae383b55445adebf9bd90b485 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Tue, 8 Apr 2025 00:18:37 +0000 Subject: [PATCH] Update cheatsheets --- tldr/eza | 14 +++++++------- tldr/linux/mkinitfs | 2 +- tldr/linux/patool | 4 ++++ 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/tldr/eza b/tldr/eza index 0faa1697..5254e97b 100644 --- a/tldr/eza +++ b/tldr/eza @@ -10,31 +10,31 @@ source: https://github.com/tldr-pages/tldr.git - List files one per line: -`eza --oneline` +`eza {{[-1|--oneline]}}` - List all files, including hidden files: -`eza --all` +`eza {{[-a|--all]}}` - Long format list (permissions, ownership, size and modification date) of all files: -`eza --long --all` +`eza {{[-al|--all --long]}}` - List files with the largest at the top: -`eza --reverse --sort={{size}}` +`eza {{[-r|--reverse]}} {{[-s|--sort]}} {{size}}` - Display a tree of files, three levels deep: -`eza --long --tree --level={{3}}` +`eza {{[-lT|--long --tree]}} {{[-L|--level]}} {{3}}` - List files sorted by modification date (oldest first): -`eza --long --sort={{modified}}` +`eza {{[-l|--long]}} {{[-s|--sort]}} {{modified}}` - List files with their headers, icons, and Git statuses: -`eza --long --header --icons --git` +`eza {{[-lh|--long --header]}} --icons --git` - Don't list files mentioned in `.gitignore`: diff --git a/tldr/linux/mkinitfs b/tldr/linux/mkinitfs index bd073a82..261aea71 100644 --- a/tldr/linux/mkinitfs +++ b/tldr/linux/mkinitfs @@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git - Compress the initramfs using the specified compression algorithm (default: gzip): -`mkinitfs -c {{gzip|xz|zstd|lz4|none}}` +`mkinitfs -C {{gzip|xz|zstd|lz4|none}}` - List files that will be included in the initramfs image: diff --git a/tldr/linux/patool b/tldr/linux/patool index 5891b190..23b1aaaa 100644 --- a/tldr/linux/patool +++ b/tldr/linux/patool @@ -13,6 +13,10 @@ source: https://github.com/tldr-pages/tldr.git `patool extract {{path/to/archive}}` +- Create an archive: + +`patool create {{/path/to/archive}} {{/path/to/file1}} {{/path/to/file2}} {{/path/to/dir1/}} {{/path/to/dir2/}}` + - List contents of an archive: `patool list {{path/to/archive}}`