From 31c618829eb08e2458216a48740a7450130acaa7 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Sun, 5 Oct 2025 00:20:58 +0000 Subject: [PATCH] Update cheatsheets --- tldr/btm | 13 +++++++------ tldr/btop | 1 + tldr/cargo-info | 21 +++++++++++++++++++++ tldr/cargo-verify-project | 3 ++- tldr/curl | 1 + tldr/file-rename | 2 +- tldr/glances | 1 + tldr/htop | 4 +++- tldr/linux/atop | 1 + tldr/linux/rename | 2 +- tldr/linux/top | 1 + tldr/nix-collect-garbage | 6 +++--- tldr/perl-rename | 2 +- tldr/pip-cache | 25 +++++++++++++++++++++++++ tldr/pip-show | 21 +++++++++++++++++++++ tldr/prename | 2 +- tldr/steam | 4 ++++ tldr/wget | 1 + 18 files changed, 96 insertions(+), 15 deletions(-) create mode 100644 tldr/cargo-info create mode 100644 tldr/pip-cache create mode 100644 tldr/pip-show diff --git a/tldr/btm b/tldr/btm index d5cf0580..e57d3f1c 100644 --- a/tldr/btm +++ b/tldr/btm @@ -5,9 +5,10 @@ source: https://github.com/tldr-pages/tldr.git --- # btm -> An alternative to `top`. -> Aims to be lightweight, cross-platform and more graphical than `top`. -> More information: . +> Display system information about the CPU, memory, disks, network and processes. +> An enhanced alternative to `top`. +> See also: `btop`, `glances`, `atop`, `htop`, `top`. +> More information: . - Show the default layout (CPU, memory, temperatures, disk, network, and processes): @@ -15,11 +16,11 @@ source: https://github.com/tldr-pages/tldr.git - Enable basic mode, removing charts and condensing data (similar to `top`): -`btm --basic` +`btm {{[-b|--basic]}}` - Use big dots instead of small ones in charts: -`btm --dot_marker` +`btm {{[-m|--dot_marker]}}` - Show also battery charge and health status: @@ -27,4 +28,4 @@ source: https://github.com/tldr-pages/tldr.git - Refresh every 250 milliseconds and show the last 30 seconds in the charts: -`btm --rate 250 --default_time_value 30000` +`btm {{[-r|--rate]}} 250 {{[-t|--default_time_value]}} 30000` diff --git a/tldr/btop b/tldr/btop index 858886e0..f0ad892d 100644 --- a/tldr/btop +++ b/tldr/btop @@ -7,6 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > A resource monitor that shows information about the CPU, memory, disks, network and processes. > A C++ version of `bpytop`. +> See also: `btm`, `glances`, `atop`, `htop`, `top`. > More information: . - Start `btop`: diff --git a/tldr/cargo-info b/tldr/cargo-info new file mode 100644 index 00000000..33138eff --- /dev/null +++ b/tldr/cargo-info @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# cargo info + +> Display information about a Rust package. +> More information: . + +- Display information about a package on : + +`cargo info {{package}}` + +- Display information about a specific version of a package: + +`cargo info {{package}}@{{version}}` + +- Display additional information about a package: + +`cargo info {{[-v|--verbose]}} {{package}}` diff --git a/tldr/cargo-verify-project b/tldr/cargo-verify-project index 218bd6ab..a1b1248d 100644 --- a/tldr/cargo-verify-project +++ b/tldr/cargo-verify-project @@ -6,7 +6,8 @@ source: https://github.com/tldr-pages/tldr.git # cargo verify-project > Check the correctness of the `Cargo.toml` manifest and print the result as a JSON object. -> More information: . +> Note: this command is deprecated and may be removed in the future. +> More information: . - Check the correctness of the current project's manifest: diff --git a/tldr/curl b/tldr/curl index 84a8afa9..fd3870cc 100644 --- a/tldr/curl +++ b/tldr/curl @@ -7,6 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Transfers data from or to a server. > Supports most protocols, including HTTP, HTTPS, FTP, SCP, etc. +> See also: `wget`. > More information: . - Make an HTTP GET request and dump the contents in `stdout`: diff --git a/tldr/file-rename b/tldr/file-rename index 835f53c4..fca63165 100644 --- a/tldr/file-rename +++ b/tldr/file-rename @@ -9,4 +9,4 @@ source: https://github.com/tldr-pages/tldr.git - View documentation for the original command: -`tldr -p common rename` +`tldr {{[-p|--platform]}} common rename` diff --git a/tldr/glances b/tldr/glances index cfda29e9..c769b008 100644 --- a/tldr/glances +++ b/tldr/glances @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # glances > A cross-platform system monitoring tool. +> See also: `htop`, `atop`, `top`, `btm`, `btop`. > More information: . - Run in terminal: diff --git a/tldr/htop b/tldr/htop index 70f4755d..d2ec8f53 100644 --- a/tldr/htop +++ b/tldr/htop @@ -5,7 +5,9 @@ source: https://github.com/tldr-pages/tldr.git --- # htop -> Display dynamic real-time information about running processes. An enhanced version of `top`. +> Display dynamic real-time information about running processes. +> An enhanced version of `top`. +> See also: `top`, `atop`, `glances`, `btop`, `btm`. > More information: . - Start `htop`: diff --git a/tldr/linux/atop b/tldr/linux/atop index ce490406..9bf71685 100644 --- a/tldr/linux/atop +++ b/tldr/linux/atop @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # atop > Linux system and process monitor. +> See also: `htop`, `top`, `btop`, `btm`, `glances`. > More information: . - Start: diff --git a/tldr/linux/rename b/tldr/linux/rename index 92603976..7ec97083 100644 --- a/tldr/linux/rename +++ b/tldr/linux/rename @@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git - View documentation for the Perl version: -`tldr -p common rename` +`tldr {{[-p|--platform]}} common rename` - View documentation for the `util-linux` version: diff --git a/tldr/linux/top b/tldr/linux/top index f432d806..954b799a 100644 --- a/tldr/linux/top +++ b/tldr/linux/top @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # top > Display dynamic real-time information about running processes. +> See also: `htop`, `atop`, `glances`, `btop`, `btm`. > More information: . - Start `top`: diff --git a/tldr/nix-collect-garbage b/tldr/nix-collect-garbage index 49d4f9a4..25ece059 100644 --- a/tldr/nix-collect-garbage +++ b/tldr/nix-collect-garbage @@ -11,12 +11,12 @@ source: https://github.com/tldr-pages/tldr.git - Delete all store paths unused by current generations of each profile: -`sudo nix-collect-garbage {{[-d|--delete-old]}}` +`nix-collect-garbage {{[-d|--delete-old]}}` - Simulate the deletion of old store paths: -`sudo nix-collect-garbage {{[-d|--delete-old]}} --dry-run` +`nix-collect-garbage {{[-d|--delete-old]}} --dry-run` - Delete all store paths older than 30 days: -`sudo nix-collect-garbage --delete-older-than 30d` +`nix-collect-garbage --delete-older-than 30d` diff --git a/tldr/perl-rename b/tldr/perl-rename index bd09f6ad..a0cf2dab 100644 --- a/tldr/perl-rename +++ b/tldr/perl-rename @@ -9,4 +9,4 @@ source: https://github.com/tldr-pages/tldr.git - View documentation for the original command: -`tldr -p common rename` +`tldr {{[-p|--platform]}} common rename` diff --git a/tldr/pip-cache b/tldr/pip-cache new file mode 100644 index 00000000..aab2e7c2 --- /dev/null +++ b/tldr/pip-cache @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# pip cache + +> Inspect and manage pip's wheel cache. +> More information: . + +- Show the location of the pip cache directory: + +`pip cache dir` + +- List filenames of all packages currently stored in the cache: + +`pip cache list` + +- Remove all files from the pip cache: + +`pip cache purge` + +- Remove cached files matching a specific package name: + +`pip cache remove {{package_name}}` diff --git a/tldr/pip-show b/tldr/pip-show new file mode 100644 index 00000000..0d6fe2a2 --- /dev/null +++ b/tldr/pip-show @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# pip show + +> Show information about installed packages. +> More information: . + +- Show information about a package: + +`pip show {{package}}` + +- Show all information about a package: + +`pip show {{[-v|--verbose]}} {{package}}` + +- Show all installed files for a package: + +`pip show {{[-f|--files]}} {{package}}` diff --git a/tldr/prename b/tldr/prename index c147b3d3..555ba655 100644 --- a/tldr/prename +++ b/tldr/prename @@ -9,4 +9,4 @@ source: https://github.com/tldr-pages/tldr.git - View documentation for the original command: -`tldr -p common rename` +`tldr {{[-p|--platform]}} common rename` diff --git a/tldr/steam b/tldr/steam index acb27e35..328563b7 100644 --- a/tldr/steam +++ b/tldr/steam @@ -16,6 +16,10 @@ source: https://github.com/tldr-pages/tldr.git `steam -console` +- Launch Steam without opening the GUI: + +`steam -silent` + - Enable and open the Steam console tab in a running Steam instance: `steam steam://open/console` diff --git a/tldr/wget b/tldr/wget index f8917ea7..4a9ec818 100644 --- a/tldr/wget +++ b/tldr/wget @@ -7,6 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Download files from the Web. > Supports HTTP, HTTPS, and FTP. +> See also: `curl`. > More information: . - Download the contents of a URL to a file (named "foo" in this case):