Update cheatsheets

This commit is contained in:
ivuorinen
2026-01-05 00:24:05 +00:00
parent 2bbe099b4f
commit 54605ccea2
17 changed files with 71 additions and 36 deletions

View File

@@ -21,7 +21,7 @@ source: https://github.com/tldr-pages/tldr.git
`acme.sh --issue --alpn {{[-d|--domain]}} {{example.com}}`
- Issue a certificate using a working Nginx configuration:
- Issue a certificate using a working `nginx` configuration:
`acme.sh --issue --nginx {{[-d|--domain]}} {{example.com}}`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# bun feedback
> Send feedback to `Bun`.
> Send feedback to Bun.
> More information: <https://bun.com/docs/feedback#use-bun-feedback>.
- Send text as feedback:

View File

@@ -17,7 +17,7 @@ source: https://github.com/tldr-pages/tldr.git
`bunx {{package_name}} --version`
- Force an executable to run with the `Bun` runtime (instead of `Node`):
- Force an executable to run with the Bun runtime (instead of Node):
`bunx --bun {{package_name}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# fastmod
> A fast partial replacement for the codemod tool, replace and replace all in the whole codebase.
> Regexes are matched by Rust regex crate.
> Regexes are matched by Rust `regex` crate.
> More information: <https://github.com/facebookincubator/fastmod>.
- Replace a `regex` in all files of the current directory, ignoring files on `.ignore` and `.gitignore`:

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# getTGT.py
> Request a Ticket Granting Ticket (TGT).
> Part of the Impacket suite.
> More information: <https://github.com/fortra/impacket>.
- Request a TGT using a password:

View File

@@ -5,21 +5,21 @@ source: https://github.com/tldr-pages/tldr.git
---
# gixy
> Analyze nginx configuration files.
> Analyze `nginx` configuration files.
> More information: <https://github.com/yandex/gixy>.
- Analyze nginx configuration (default path: `/etc/nginx/nginx.conf`):
- Analyze nginx configuration (default path: `/etc/nginx/`nginx`.conf`):
`gixy`
- Analyze nginx configuration but skip specific tests:
- Analyze `nginx` configuration but skip specific tests:
`gixy --skips {{http_splitting}}`
- Analyze nginx configuration with the specific severity level:
- Analyze `nginx` configuration with the specific severity level:
`gixy {{-l|-ll|-lll}}`
- Analyze nginx configuration files on the specific path:
- Analyze `nginx` configuration files on the specific path:
`gixy {{path/to/configuration_file_1}} {{path/to/configuration_file_2}}`

View File

@@ -9,15 +9,15 @@ source: https://github.com/tldr-pages/tldr.git
> Specifies pod generator to avoid deprecation error in some K8S versions.
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_run/>.
- Run an nginx pod and expose port 80:
- Run an `nginx` pod and expose port 80:
`kubectl run {{nginx-dev}} --image nginx --port 80`
- Run an nginx pod, setting the `$TEST_VAR` environment variable:
- Run an `nginx` pod, setting the `$TEST_VAR` environment variable:
`kubectl run {{nginx-dev}} --image nginx --env "{{TEST_VAR}}={{testing}}"`
- Show API calls that would be made to create an nginx container:
- Show API calls that would be made to create an `nginx` container:
`kubectl run {{nginx-dev}} --image nginx --dry-run={{none|server|client}}`

View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# apptainer delete
> Delete container images from a remote library.
> More information: <https://apptainer.org/docs/user/main/cli/apptainer_delete.html>.
- Delete an image from the Container Library:
`apptainer delete library://{{user/collection/container}}:{{tag}}`
- Delete an image for a specific architecture:
`apptainer delete --arch {{amd64|arm64|ppc64le}} library://{{user/collection/container}}:{{tag}}`
- [F]orce delete an image without confirmation:
`apptainer delete {{[-F|--force]}} library://{{user/collection/container}}:{{tag}}`
- Delete an image from a specific library server:
`apptainer delete --library {{https://library.example.com}} library://{{user/collection/container}}:{{tag}}`
- Delete an image using HTTP instead of HTTPS:
`apptainer delete --no-https library://{{hostname/user/collection/container}}:{{tag}}`
- Display help:
`apptainer delete {{[-h|--help]}}`

View File

@@ -13,7 +13,7 @@ source: https://github.com/tldr-pages/tldr.git
`sudo certbot certonly --webroot {{[-w|--webroot-path]}} {{path/to/webroot}} {{[-d|--domain]}} {{subdomain.example.com}}`
- Obtain a new certificate via nginx authorization, installing the new certificate automatically:
- Obtain a new certificate via `nginx` authorization, installing the new certificate automatically:
`sudo certbot --nginx {{[-d|--domain]}} {{subdomain.example.com}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# semanage permissive
> Manage persistent SELinux permissive domains.
> Note that this effectively makes the process unconfined. For long-term use, it is recommended to configure SELiunx properly.
> Note that this effectively makes the process unconfined. For long-term use, it is recommended to configure SELinux properly.
> See also: `semanage`, `getenforce`, `setenforce`.
> More information: <https://manned.org/semanage-permissive>.

View File

@@ -14,6 +14,6 @@ source: https://github.com/tldr-pages/tldr.git
`setenforce {{1|Enforcing}}`
- Put SELiunx in permissive mode:
- Put SELinux in permissive mode:
`setenforce {{0|Permissive}}`

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl edit
> Edit systemd unit files.
> See also: `systemctl revert`.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#edit%20UNIT%E2%80%A6>.
- Overlay a unit file non-destructively:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl reload
> Reload a service's configuration without restarting it.
> This reloads the service itself (like Apache or Nginx configs), not the systemd unit file.
> This reloads the service itself (like Apache or `nginx` configs), not the systemd unit file.
> To reload unit files, use `systemctl daemon-reload`.
- Reload a service:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# nginx
> Nginx web server.
> `nginx` web server.
> More information: <https://nginx.org/docs/switches.html>.
- Start the server with the default configuration file:

View File

@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
`aiac get terraform {{for an azure storage account}}`
- Generate a Dockerfile for nginx:
- Generate a Dockerfile for `nginx`:
`aiac get dockerfile {{for a secured nginx}}`

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> Run TypeScript code directly, without any compiling.
> More information: <https://typestrong.org/ts-node/docs/options/>.
- Execute a TypeScript file without compiling (`node` + `tsc`):
- Execute a TypeScript file without compiling (Node + `tsc`):
`ts-node {{path/to/file.ts}}`

View File

@@ -6,38 +6,38 @@ source: https://github.com/tldr-pages/tldr.git
# virsh
> Manage `virsh` guest domains.
> Note: `guest_id` can be the ID, name, or UUID of the guest.
> Note: Some of the commands below may require specifying `virsh --connect URI` explicitly.
> Some subcommands such as `list` have their own usage documentation.
> More information: <https://libvirt.org/manpages/virsh.html>.
- Connect to a hypervisor session:
- Connect to a hypervisor session interactively:
`virsh connect {{qemu:///system}}`
- Activate a network named `default`:
`sudo virsh net-start {{default}}`
`virsh {{[-c|--connect]}} {{qemu:///system|qemu:///session|xen:///system|lxc:///system|...}}`
- List all domains:
`virsh list --all`
`virsh {{[-c|--connect]}} {{URI}} list --all`
- Create a guest from a configuration file:
- Activate a network named `default`:
`virsh net-start {{default}}`
- Create a domain from a configuration file:
`virsh create {{path/to/config_file.xml}}`
- Edit a guest's configuration file (editor can be changed with `$EDITOR`):
- Edit a domain's configuration file (editor can be changed with `$EDITOR` or `$VISUAL`):
`virsh edit {{guest_id}}`
`virsh edit {{domain}}`
- Start/reboot/shutdown/suspend/resume a guest:
- Start/reboot/reset/shutdown/destroy/suspend/resume a domain:
`virsh {{command}} {{guest_id}}`
`virsh {{start|reboot|reset|shutdown|destroy|suspend|resume}} {{domain}}`
- Save the current state of a guest to a file:
- Save the current running state of a domain (RAM, but not disk state) to a state file (domain will be powered off):
`virsh save {{guest_id}} {{filename}}`
`virsh save {{domain}} {{path/to/state_file}}`
- Delete a running guest:
- Remove storage and snapshots of a stopped domain:
`virsh destroy {{guest_id}} && virsh undefine {{guest_id}}`
`virsh undefine {{domain}} --remove-all-storage --snapshots-metadata`