mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-14 08:59:42 +00:00
Update cheatsheets
This commit is contained in:
@@ -29,7 +29,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
`asciinema play https://asciinema.org/a/{{cast_id}}`
|
`asciinema play https://asciinema.org/a/{{cast_id}}`
|
||||||
|
|
||||||
- Make a new recording, limiting any [i]dle time to at most 2.5 seconds:
|
- Make a new recording, limiting any idle time to at most 2.5 seconds:
|
||||||
|
|
||||||
`asciinema rec {{-i|--idle-time-limit}} 2.5`
|
`asciinema rec {{-i|--idle-time-limit}} 2.5`
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
`calibredb add {{path/to/file1 path/to/file2 ...}}`
|
`calibredb add {{path/to/file1 path/to/file2 ...}}`
|
||||||
|
|
||||||
- [r]ecursively add all e-books under a directory to the library:
|
- Recursively add all e-books under a directory to the library:
|
||||||
|
|
||||||
`calibredb add {{-r|--recurse}} {{path/to/directory}}`
|
`calibredb add {{-r|--recurse}} {{path/to/directory}}`
|
||||||
|
|
||||||
|
|||||||
12
tldr/linux/pacman-r
Normal file
12
tldr/linux/pacman-r
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
syntax: markdown
|
||||||
|
tags: [tldr, linux]
|
||||||
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
|
---
|
||||||
|
# pacman -R
|
||||||
|
|
||||||
|
> This command is an alias of `pacman --remove`.
|
||||||
|
|
||||||
|
- View documentation for the original command:
|
||||||
|
|
||||||
|
`tldr pacman remove`
|
||||||
@@ -9,30 +9,30 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
> See also: `pacman`.
|
> See also: `pacman`.
|
||||||
> More information: <https://manned.org/pacman.8>.
|
> More information: <https://manned.org/pacman.8>.
|
||||||
|
|
||||||
- Remove a package and its dependencies:
|
- [R]emove a package and its dependencies recur[s]ively:
|
||||||
|
|
||||||
`sudo pacman --remove --recursive {{package}}`
|
`sudo pacman -Rs {{package}}`
|
||||||
|
|
||||||
- Remove a package and both its dependencies and configuration files:
|
- [R]emove a package and its dependencies. Also do [n]ot save backups of configuration files:
|
||||||
|
|
||||||
`sudo pacman --remove --recursive --nosave {{package}}`
|
`sudo pacman -Rsn {{package}}`
|
||||||
|
|
||||||
- Remove a package without prompting:
|
- [R]emove a package without prompting:
|
||||||
|
|
||||||
`sudo pacman --remove --noconfirm {{package}}`
|
`sudo pacman -R --noconfirm {{package}}`
|
||||||
|
|
||||||
- Remove orphan packages (installed as dependencies but not required by any package):
|
- [R]emove orphan packages (installed as [d]ependencies but no[t] required by any package):
|
||||||
|
|
||||||
`sudo pacman --remove --recursive --nosave $(pacman --query --unrequired --deps --quiet)`
|
`sudo pacman -Rsn $(pacman -Qdtq)`
|
||||||
|
|
||||||
- Remove a package and all packages that depend on it:
|
- [R]emove a package and [c]ascade that to all packages that depend on it:
|
||||||
|
|
||||||
`sudo pacman --remove --cascade {{package}}`
|
`sudo pacman -Rc {{package}}`
|
||||||
|
|
||||||
- List packages that would be affected (does not remove any packages):
|
- List and [p]rint packages that would be affected (does not [R]emove any packages):
|
||||||
|
|
||||||
`pacman --remove --print {{package}}`
|
`pacman -Rp {{package}}`
|
||||||
|
|
||||||
- Display help:
|
- Display [h]elp:
|
||||||
|
|
||||||
`pacman --remove --help`
|
`pacman -Rh`
|
||||||
|
|||||||
@@ -29,3 +29,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
- Double the brightness of all image files in the current directory:
|
- Double the brightness of all image files in the current directory:
|
||||||
|
|
||||||
`magick mogrify -modulate {{200}} {{*}}`
|
`magick mogrify -modulate {{200}} {{*}}`
|
||||||
|
|
||||||
|
- Reduce file sizes of all GIF images in the current directory by reducing quality:
|
||||||
|
|
||||||
|
`magick mogrify -layers 'optimize' -fuzz {{7%}} {{*.gif}}`
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ syntax: markdown
|
|||||||
tags: [tldr, common]
|
tags: [tldr, common]
|
||||||
source: https://github.com/tldr-pages/tldr.git
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
---
|
---
|
||||||
# npm-check
|
# npm check
|
||||||
|
|
||||||
> Check for outdated, incorrect, and unused npm package dependencies.
|
> Check for outdated, incorrect, and unused npm package dependencies.
|
||||||
> More information: <https://github.com/dylang/npm-check>.
|
> More information: <https://github.com/dylang/npm-check>.
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ syntax: markdown
|
|||||||
tags: [tldr, common]
|
tags: [tldr, common]
|
||||||
source: https://github.com/tldr-pages/tldr.git
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
---
|
---
|
||||||
# npm-home
|
# npm home
|
||||||
|
|
||||||
> Open the npm page, Yarn page, or GitHub repository of a package in the web browser.
|
> Open the npm page, Yarn page, or GitHub repository of a package in the web browser.
|
||||||
> More information: <https://github.com/sindresorhus/npm-home>.
|
> More information: <https://github.com/sindresorhus/npm-home>.
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
---
|
---
|
||||||
# npm install
|
# npm install
|
||||||
|
|
||||||
> Install node packages.
|
> Install Node packages.
|
||||||
> More information: <https://docs.npmjs.com/cli/commands/npm-install>.
|
> More information: <https://docs.npmjs.com/cli/commands/npm-install>.
|
||||||
|
|
||||||
- Install dependencies listed in package.json:
|
- Install dependencies listed in `package.json`:
|
||||||
|
|
||||||
`npm install`
|
`npm install`
|
||||||
|
|
||||||
|
|||||||
@@ -6,16 +6,17 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
# npm login
|
# npm login
|
||||||
|
|
||||||
> Login to a registry user account.
|
> Login to a registry user account.
|
||||||
|
> See also: `npm logout` for logging out.
|
||||||
> More information: <https://docs.npmjs.com/cli/commands/npm-login>.
|
> More information: <https://docs.npmjs.com/cli/commands/npm-login>.
|
||||||
|
|
||||||
- Login to a registry user account and save the credentials to the `.npmrc` file:
|
- Login to a registry user account and save the credentials to the `.npmrc` file:
|
||||||
|
|
||||||
`npm login`
|
`npm login`
|
||||||
|
|
||||||
- Login, using a custom registry:
|
- Login using a custom registry:
|
||||||
|
|
||||||
`npm login --registry={{registry_url}}`
|
`npm login --registry={{registry_url}}`
|
||||||
|
|
||||||
- Login, using a specific authentication strategy:
|
- Login using a specific authentication strategy:
|
||||||
|
|
||||||
`npm login --auth-type={{legacy|web}}`
|
`npm login --auth-type={{legacy|web}}`
|
||||||
|
|||||||
18
tldr/npm-logout
Normal file
18
tldr/npm-logout
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
syntax: markdown
|
||||||
|
tags: [tldr, common]
|
||||||
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
|
---
|
||||||
|
# npm logout
|
||||||
|
|
||||||
|
> Logout of the registry user account.
|
||||||
|
> See also: `npm login` for logging in.
|
||||||
|
> More information: <https://docs.npmjs.com/cli/commands/npm-logout>.
|
||||||
|
|
||||||
|
- Logout of the registry user account:
|
||||||
|
|
||||||
|
`npm logout`
|
||||||
|
|
||||||
|
- Logout using a custom registry:
|
||||||
|
|
||||||
|
`npm logout --registry={{registry_url}}`
|
||||||
@@ -3,7 +3,7 @@ syntax: markdown
|
|||||||
tags: [tldr, common]
|
tags: [tldr, common]
|
||||||
source: https://github.com/tldr-pages/tldr.git
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
---
|
---
|
||||||
# npm-name
|
# npm name
|
||||||
|
|
||||||
> Check whether a package or organization name is available on npm.
|
> Check whether a package or organization name is available on npm.
|
||||||
> More information: <https://github.com/sindresorhus/npm-name-cli>.
|
> More information: <https://github.com/sindresorhus/npm-name-cli>.
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ syntax: markdown
|
|||||||
tags: [tldr, common]
|
tags: [tldr, common]
|
||||||
source: https://github.com/tldr-pages/tldr.git
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
---
|
---
|
||||||
# npm-org
|
# npm org
|
||||||
|
|
||||||
> Manage organizations.
|
> Manage organizations.
|
||||||
> More information: <https://docs.npmjs.com/cli/commands/npm-org>.
|
> More information: <https://docs.npmjs.com/cli/commands/npm-org>.
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ syntax: markdown
|
|||||||
tags: [tldr, common]
|
tags: [tldr, common]
|
||||||
source: https://github.com/tldr-pages/tldr.git
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
---
|
---
|
||||||
# npm-outdated
|
# npm outdated
|
||||||
|
|
||||||
> Check for outdated npm package dependencies.
|
> Check for outdated npm package dependencies.
|
||||||
> More information: <https://docs.npmjs.com/cli/commands/npm-outdated>.
|
> More information: <https://docs.npmjs.com/cli/commands/npm-outdated>.
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ syntax: markdown
|
|||||||
tags: [tldr, common]
|
tags: [tldr, common]
|
||||||
source: https://github.com/tldr-pages/tldr.git
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
---
|
---
|
||||||
# npm-owner
|
# npm owner
|
||||||
|
|
||||||
> Manage ownership of published packages.
|
> Manage ownership of published packages.
|
||||||
> More information: <https://docs.npmjs.com/cli/commands/npm-owner>.
|
> More information: <https://docs.npmjs.com/cli/commands/npm-owner>.
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ syntax: markdown
|
|||||||
tags: [tldr, common]
|
tags: [tldr, common]
|
||||||
source: https://github.com/tldr-pages/tldr.git
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
---
|
---
|
||||||
# npm-why
|
# npm why
|
||||||
|
|
||||||
> Identifies why an npm package is installed.
|
> Identifies why an npm package is installed.
|
||||||
> More information: <https://github.com/amio/npm-why>.
|
> More information: <https://github.com/amio/npm-why>.
|
||||||
|
|||||||
Reference in New Issue
Block a user