mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-12 05:47:38 +00:00
Update cheatsheets
This commit is contained in:
13
tldr/btm
13
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: <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`
|
||||
|
||||
@@ -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
21
tldr/cargo-info
Normal 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}}`
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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`:
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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`:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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`:
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -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
25
tldr/pip-cache
Normal 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
21
tldr/pip-show
Normal 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}}`
|
||||
@@ -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`
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user