Update cheatsheets

This commit is contained in:
ivuorinen
2025-08-12 00:20:27 +00:00
parent de1a736bbc
commit 3f2128c494
7 changed files with 55 additions and 16 deletions

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# enable
> Enter privileged execution mode.
> More information: <https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ios_shl/command/ios-shell-cr-book/ios-shell-cr-a1.html>.
> More information: <https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/security/d1/sec-d1-cr-book/sec-cr-e1.html#wp3307186499>.
- Enter privileged execution mode:

View File

@@ -14,15 +14,15 @@ source: https://github.com/tldr-pages/tldr.git
- List hardware transcoding capabilities of your device:
`gst-inspect-1.0 {{vaapi|nvcodec}}`
`gst-inspect-1.0 {{vaapi|nvcodec|...}}`
- List available container plugins:
`gst-inspect-1.0 {{matroska|avi|ogg|isomp4}}`
`gst-inspect-1.0 {{matroska|avi|ogg|isomp4|...}}`
- List available audio codecs:
`gst-inspect-1.0 {{opus|vorbis|flac}}`
`gst-inspect-1.0 {{opus|vorbis|flac|...}}`
- List GStreamer core elements:
@@ -30,11 +30,11 @@ source: https://github.com/tldr-pages/tldr.git
- List plugins that utilize graphics APIs:
`gst-inspect-1.0 {{vulkan|opengl}}`
`gst-inspect-1.0 {{vulkan|opengl|...}}`
- List available image codecs:
`gst-inspect-1.0 {{png|jpeg}}`
`gst-inspect-1.0 {{png|jpeg|...}}`
- List all available plugins:

View File

@@ -10,27 +10,31 @@ source: https://github.com/tldr-pages/tldr.git
- Get all namespaces in the current cluster:
`kubectl get namespaces`
`kubectl get {{[ns|namespaces]}}`
- Get nodes in a specified namespace:
`kubectl get nodes {{[-n|--namespace]}} {{namespace}}`
`kubectl get {{[no|nodes]}} {{[-n|--namespace]}} {{namespace}}`
- Get pods in a specified namespace:
`kubectl get pods {{[-n|--namespace]}} {{namespace}}`
`kubectl get {{[po|pods]}} {{[-n|--namespace]}} {{namespace}}`
- Get deployments in a specified namespace:
`kubectl get deployments {{[-n|--namespace]}} {{namespace}}`
`kubectl get {{[deploy|deployments]}} {{[-n|--namespace]}} {{namespace}}`
- Get services in a specified namespace:
`kubectl get services {{[-n|--namespace]}} {{namespace}}`
`kubectl get {{[svc|services]}} {{[-n|--namespace]}} {{namespace}}`
- Get all resources in a specified namespace:
- Get other resources:
`kubectl get all {{[-n|--namespace]}} {{namespace}}`
`kubectl get {{persistentvolumeclaims|secret}}`
- Get all resources in all namespaces:
`kubectl get all {{[-A|--all-namespaces]}}`
- Get Kubernetes objects defined in a YAML manifest file:

View File

@@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git
- Get the UUID of the filesystem on a partition:
`blkid {{[-s|--match-tag]}} UUID {{[-o|--output]}} value {{/dev/sdXY}}`
`sudo blkid {{[-s|--match-tag]}} UUID {{[-o|--output]}} value {{/dev/sdXY}}`

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# loginctl
> Manage the systemd login manager.
> See also: `lslogins`.
> More information: <https://www.freedesktop.org/software/systemd/man/loginctl.html>.
- Print all current sessions:

26
tldr/linux/pdfbook2 Normal file
View File

@@ -0,0 +1,26 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# pdfbook2
> Create a double sided printable PDF booklet from a PDF.
> Note: The booklet needs to be printed double-sided in landscape mode, flipped on the long edge.
> More information: <https://github.com/jenom/pdfbook2#examples>.
- Create a booklet named `file-book.pdf` with sane defaults:
`pdfbook2 {{path/to/file.pdf}}`
- Create a booklet with the paper size set to A4:
`pdfbook2 {{[-p|--paper]}} a4paper {{path/to/file.pdf}}`
- Create a booklet that has the inner margin reduced to 50 pixels (default = 150px):
`pdfbook2 {{[-p|--paper]}} a4paper {{[-i|--inner-margin]}} 50 {{path/to/file.pdf}}`
- Organize a large file with print signatures for binding into a larger booklet (signatures must be divisible by 4):
`pdfbook2 {{[-p|--paper]}} a4paper --signature {{24}} {{path/to/file.pdf}}`

View File

@@ -8,13 +8,17 @@ source: https://github.com/tldr-pages/tldr.git
> Create or restore a virtual machine on QEMU/KVM Virtual Machine Manager.
> More information: <https://pve.proxmox.com/pve-docs/qm.1.html>.
- Create a virtual machine:
- Create a virtual machine with access to 512MiB of memory and 1 CPU core:
`qm {{[cr|create]}} {{100}}`
- Automatically start the machine after creation:
`qm {{[cr|create]}} {{100}} --start 1`
`qm {{[cr|create]}} {{100}} --start`
- Give the virtual machine a name:
`qm {{[cr|create]}} {{100}} --name {{vm_name}}`
- Specify the type of operating system on the machine:
@@ -28,6 +32,10 @@ source: https://github.com/tldr-pages/tldr.git
`qm {{[cr|create]}} {{100}} --hookscript {{path/to/script.pl}}`
- Specify the install media:
`qm {{[cr|create]}} {{100}} --cdrom {{local:iso/install-media.iso}}`
- Create a VM that bridges itself to the host network:
`qm {{[cr|create]}} {{100}} --net{{0}} virtio,bridge=vmbr{{0}}`