Update cheatsheets

This commit is contained in:
ivuorinen
2025-08-06 00:22:04 +00:00
parent 50d4c83b4e
commit c22ca08b6b
13 changed files with 168 additions and 18 deletions

13
tldr/linux/efibootdump Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# efibootdump
> Dump boot entries from a variable or a file.
> More information: <https://manned.org/efibootdump>.
- Dump boot entries from a file:
`efibootdump {{[-f|--file]}} {{/sys/firmware/efi/efivars/Boot0000-8be4df61-93ca-11d2-aa0d-00e098032b8c}}`

13
tldr/linux/pct-template Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# pct template
> Convert a container into a template.
> More information: <https://pve.proxmox.com/pve-docs/pct.1.html>.
- Convert a container into a template:
`pct template {{100}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# phpquery
> PHP extension manager for Debian-based OSes.
> More information: <https://helpmanual.io/help/phpquery/>.
> More information: <https://code.google.com/archive/p/phpquery/wikis/CommandLineInterface.wiki>.
- List available PHP versions:

View File

@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
- Using an ISO file uploaded on the local storage, create a virtual machine with a 4 GB IDE disk on the `local-lvm` storage and an ID of 100:
`qm {{[cr|create]}} {{100}} -ide0 {{local-lvm:4}} -net0 {{e1000}} -cdrom {{local:iso/proxmox-mailgateway_2.1.iso}}`
`qm {{[cr|create]}} {{100}} --ide0 {{local-lvm:4}} --net0 {{e1000}} --cdrom {{local:iso/proxmox-mailgateway_2.1.iso}}`
- Show the configuration of a virtual machine, specifying its ID:

25
tldr/linux/qm-disk Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# qm disk
> Manage disk images.
> More information: <https://pve.proxmox.com/pve-docs/qm.1.html>.
- Add `n` gigabytes to a virtual disk:
`qm {{[di|disk]}} {{[resi|resize]}} {{vm_id}} {{disk_name}} +{{n}}G`
- Move a virtual disk:
`qm {{[di|disk]}} {{[m|move]}} {{vm_id}} {{destination}} {{index}}`
- Delete the previous copy of the virtual disk:
`qm {{[di|disk]}} {{[m|move]}} --delete {{vm_id}} {{destination}} {{index}}`
- Import a VMDK/qcow2/raw disk image using a specific storage name:
`qm {{[di|disk]}} {{[i|import]}} {{vm_id}} {{path/to/disk}} {{storage_name}} --format {{qcow2|raw|vmdk}}`

17
tldr/linux/qm-terminal Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# qm terminal
> Attach to the serial console of a VM.
> More information: <https://pve.proxmox.com/pve-docs/qm.1.html>.
- Attach to a terminal:
`qm terminal {{100}}`
- Detach from a terminal:
`<Ctrl o>`

View File

@@ -12,3 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
- Move a running process to your current terminal:
`reptyr {{pid}}`
- Attach to a process using its name:
`reptyr $(pidof {{htop}})`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# yaourt
> Arch Linux utility for building packages from the Arch User Repository.
> More information: <https://linuxcommandlibrary.com/man/yaourt>.
> More information: <https://archlinux.fr/yaourt-en>.
- Synchronize and update all packages (including AUR):