mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-26 16:53:04 +00:00
Update cheatsheets
This commit is contained in:
@@ -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}}`
|
||||
|
||||
@@ -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
26
tldr/linux/pdfbook2
Normal 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}}`
|
||||
@@ -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}}`
|
||||
|
||||
Reference in New Issue
Block a user