diff --git a/tldr/acme.sh b/tldr/acme.sh index 1e8cc114..d88cf51f 100644 --- a/tldr/acme.sh +++ b/tldr/acme.sh @@ -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}}` diff --git a/tldr/bun-feedback b/tldr/bun-feedback index 617cf2c0..0d741ce6 100644 --- a/tldr/bun-feedback +++ b/tldr/bun-feedback @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # bun feedback -> Send feedback to `Bun`. +> Send feedback to Bun. > More information: . - Send text as feedback: diff --git a/tldr/bunx b/tldr/bunx index b9b3405a..05d0b0b0 100644 --- a/tldr/bunx +++ b/tldr/bunx @@ -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}}` diff --git a/tldr/fastmod b/tldr/fastmod index b3378949..f496892e 100644 --- a/tldr/fastmod +++ b/tldr/fastmod @@ -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: . - Replace a `regex` in all files of the current directory, ignoring files on `.ignore` and `.gitignore`: diff --git a/tldr/gettgt.py b/tldr/gettgt.py index a964eff9..048867c2 100644 --- a/tldr/gettgt.py +++ b/tldr/gettgt.py @@ -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: . - Request a TGT using a password: diff --git a/tldr/gixy b/tldr/gixy index cc7c6ca4..825da474 100644 --- a/tldr/gixy +++ b/tldr/gixy @@ -5,21 +5,21 @@ source: https://github.com/tldr-pages/tldr.git --- # gixy -> Analyze nginx configuration files. +> Analyze `nginx` configuration files. > More information: . -- 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}}` diff --git a/tldr/kubectl-run b/tldr/kubectl-run index 4b35a22d..f3013be3 100644 --- a/tldr/kubectl-run +++ b/tldr/kubectl-run @@ -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: . -- 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}}` diff --git a/tldr/linux/apptainer-delete b/tldr/linux/apptainer-delete new file mode 100644 index 00000000..6c4af781 --- /dev/null +++ b/tldr/linux/apptainer-delete @@ -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: . + +- 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]}}` diff --git a/tldr/linux/certbot b/tldr/linux/certbot index 12e07bbf..e05a6373 100644 --- a/tldr/linux/certbot +++ b/tldr/linux/certbot @@ -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}}` diff --git a/tldr/linux/semanage-permissive b/tldr/linux/semanage-permissive index 854a8a87..49c1019e 100644 --- a/tldr/linux/semanage-permissive +++ b/tldr/linux/semanage-permissive @@ -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: . diff --git a/tldr/linux/setenforce b/tldr/linux/setenforce index 1b42e30e..86433862 100644 --- a/tldr/linux/setenforce +++ b/tldr/linux/setenforce @@ -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}}` diff --git a/tldr/linux/systemctl-edit b/tldr/linux/systemctl-edit index 11ebc2be..c59b7810 100644 --- a/tldr/linux/systemctl-edit +++ b/tldr/linux/systemctl-edit @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # systemctl edit > Edit systemd unit files. +> See also: `systemctl revert`. > More information: . - Overlay a unit file non-destructively: diff --git a/tldr/linux/systemctl-reload b/tldr/linux/systemctl-reload index adfa3971..ff50252c 100644 --- a/tldr/linux/systemctl-reload +++ b/tldr/linux/systemctl-reload @@ -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: diff --git a/tldr/nginx b/tldr/nginx index 11cd00e0..a6ed85c5 100644 --- a/tldr/nginx +++ b/tldr/nginx @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # nginx -> Nginx web server. +> `nginx` web server. > More information: . - Start the server with the default configuration file: diff --git a/tldr/osx/aiac b/tldr/osx/aiac index 2b54bd4d..55455734 100644 --- a/tldr/osx/aiac +++ b/tldr/osx/aiac @@ -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}}` diff --git a/tldr/ts-node b/tldr/ts-node index 7eb5a0b6..24b92ccf 100644 --- a/tldr/ts-node +++ b/tldr/ts-node @@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git > Run TypeScript code directly, without any compiling. > More information: . -- Execute a TypeScript file without compiling (`node` + `tsc`): +- Execute a TypeScript file without compiling (Node + `tsc`): `ts-node {{path/to/file.ts}}` diff --git a/tldr/virsh b/tldr/virsh index e182802d..7246da43 100644 --- a/tldr/virsh +++ b/tldr/virsh @@ -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: . -- 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`