Update cheatsheets

This commit is contained in:
ivuorinen
2026-02-19 00:29:22 +00:00
parent c8b91d4774
commit b5aad07aa9
7 changed files with 80 additions and 6 deletions

37
tldr/bun-pm-pack Normal file
View 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`

View File

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

View File

@@ -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
View 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]}}`

View File

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

View File

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

View File

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