Update cheatsheets

This commit is contained in:
ivuorinen
2025-10-05 00:20:58 +00:00
parent 54fbdb75a0
commit 31c618829e
18 changed files with 96 additions and 15 deletions

View File

@@ -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: <https://github.com/ClementTsang/bottom>.
> 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: <https://clementtsang.github.io/bottom/nightly/#usage-and-configuration>.
- 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`

View File

@@ -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: <https://github.com/aristocratos/btop#command-line-options>.
- Start `btop`:

21
tldr/cargo-info Normal file
View File

@@ -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: <https://doc.rust-lang.org/cargo/commands/cargo-info.html>.
- Display information about a package on <https://crates.io>:
`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}}`

View File

@@ -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: <https://doc.rust-lang.org/cargo/commands/cargo-verify-project.html>.
> Note: this command is deprecated and may be removed in the future.
> More information: <https://doc.rust-lang.org/cargo/commands/deprecated-and-removed.html>.
- Check the correctness of the current project's manifest:

View File

@@ -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: <https://curl.se/docs/manpage.html>.
- Make an HTTP GET request and dump the contents in `stdout`:

View File

@@ -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`

View File

@@ -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: <https://nicolargo.github.io/glances/>.
- Run in terminal:

View File

@@ -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: <https://manned.org/htop>.
- Start `htop`:

View File

@@ -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: <https://manned.org/atop>.
- Start:

View File

@@ -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:

View File

@@ -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: <https://manned.org/top>.
- Start `top`:

View File

@@ -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`

View File

@@ -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`

25
tldr/pip-cache Normal file
View File

@@ -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: <https://pip.pypa.io/en/stable/cli/pip_cache/>.
- 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}}`

21
tldr/pip-show Normal file
View File

@@ -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: <https://pip.pypa.io/en/stable/cli/pip_show/>.
- 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}}`

View File

@@ -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`

View File

@@ -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`

View File

@@ -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: <https://www.gnu.org/software/wget/manual/wget.html>.
- Download the contents of a URL to a file (named "foo" in this case):