mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-19 14:50:23 +00:00
Update cheatsheets
This commit is contained in:
37
tldr/bun-pm-pack
Normal file
37
tldr/bun-pm-pack
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# bun pm pack
|
||||
|
||||
> Create a `.tgz` archive containing the files that would be published to npm (same behavior as `npm pack`).
|
||||
> More information: <https://bun.com/docs/pm/cli/pm#pack>.
|
||||
|
||||
- Create a tarball from the current workspace:
|
||||
|
||||
`bun pm pack`
|
||||
|
||||
- Run all steps without writing the tarball to disk:
|
||||
|
||||
`bun pm pack --dry-run`
|
||||
|
||||
- Save the tarball to a specific directory:
|
||||
|
||||
`bun pm pack --destination {{path/to/directory}}`
|
||||
|
||||
- Set an exact filename for the tarball:
|
||||
|
||||
`bun pm pack --filename {{filename}}`
|
||||
|
||||
- Skip prepack, postpack, and prepare scripts:
|
||||
|
||||
`bun pm pack --ignore-scripts`
|
||||
|
||||
- Set the gzip compression level (0-9, default: 9):
|
||||
|
||||
`bun pm pack --gzip-level 5`
|
||||
|
||||
- Output only the tarball filename and suppress verbose logs:
|
||||
|
||||
`bun pm pack --quiet`
|
||||
1
tldr/dig
1
tldr/dig
@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# dig
|
||||
|
||||
> DNS lookup utility.
|
||||
> See also: `resolvectl`, `nslookup`, `host`.
|
||||
> More information: <https://manned.org/dig>.
|
||||
|
||||
- Lookup the IP(s) associated with a hostname (A records):
|
||||
|
||||
@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# host
|
||||
|
||||
> Lookup Domain Name Server.
|
||||
> See also: `dig`, `resolvectl`, `nslookup`.
|
||||
> More information: <https://manned.org/host>.
|
||||
|
||||
- Lookup A, AAAA, and MX records of a domain:
|
||||
|
||||
33
tldr/linux/appman
Normal file
33
tldr/linux/appman
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# appman
|
||||
|
||||
> Package manager for AppImages.
|
||||
> More information: <https://github.com/ivan-hc/AppMan>.
|
||||
|
||||
- Update all packages to the latest available versions:
|
||||
|
||||
`appman {{[-u|update]}}`
|
||||
|
||||
- Search packages via keywords:
|
||||
|
||||
`appman {{[-q|query]}} {{package}}`
|
||||
|
||||
- Install a new package:
|
||||
|
||||
`appman {{[-i|install]}} {{package}}`
|
||||
|
||||
- Remove a package:
|
||||
|
||||
`appman {{[-r|remove]}} {{package}}`
|
||||
|
||||
- List all available packages:
|
||||
|
||||
`appman {{[-l|list]}}`
|
||||
|
||||
- Update AppMan to the latest version available:
|
||||
|
||||
`appman {{[-s|sync]}}`
|
||||
@@ -7,6 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Resolve domain names, IPv4 and IPv6 addresses, DNS resource records, and services.
|
||||
> Introspect and reconfigure the DNS resolver.
|
||||
> See also: `dig`, `nslookup`, `host`.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/latest/resolvectl.html>.
|
||||
|
||||
- Show DNS settings:
|
||||
|
||||
@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# nslookup
|
||||
|
||||
> Query name servers for various domain records.
|
||||
> See also: `dig`, `resolvectl`, `host`.
|
||||
> More information: <https://manned.org/nslookup>.
|
||||
|
||||
- Query your system's default name server for an IP address (A record) of the domain:
|
||||
|
||||
@@ -15,19 +15,19 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Generate an ed25519 key with 32 key derivation function rounds and save the key to a specific file:
|
||||
|
||||
`ssh-keygen -t {{ed25519}} -a {{32}} -f {{~/.ssh/filename}}`
|
||||
`ssh-keygen -t ed25519 -a 32 -f {{~/.ssh/filename}}`
|
||||
|
||||
- Generate an RSA 4096-bit key with email as a comment:
|
||||
|
||||
`ssh-keygen -t {{rsa}} -b {{4096}} -C "{{comment|email}}"`
|
||||
`ssh-keygen -t rsa -b 4096 -C "{{comment|email}}"`
|
||||
|
||||
- Remove the keys of a host from the known_hosts file (useful when a known host has a new key):
|
||||
- Remove the keys of a host from the `known_hosts` file (useful when a known host has a new key):
|
||||
|
||||
`ssh-keygen -R {{remote_host}}`
|
||||
|
||||
- Retrieve the fingerprint of a key in MD5 Hex:
|
||||
|
||||
`ssh-keygen -l -E {{md5}} -f {{~/.ssh/filename}}`
|
||||
`ssh-keygen -l -E md5 -f {{~/.ssh/filename}}`
|
||||
|
||||
- Change the password of a key:
|
||||
|
||||
@@ -35,8 +35,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Change the type of the key format (for example from OPENSSH format to PEM), the file will be rewritten in-place:
|
||||
|
||||
`ssh-keygen -p -N "" -m {{PEM}} -f {{~/.ssh/OpenSSH_private_key}}`
|
||||
`ssh-keygen -p -m PEM -f {{~/.ssh/OpenSSH_private_key}}`
|
||||
|
||||
- Retrieve public key from secret key:
|
||||
- Retrieve public key from private key:
|
||||
|
||||
`ssh-keygen -y -f {{~/.ssh/OpenSSH_private_key}}`
|
||||
|
||||
Reference in New Issue
Block a user