mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-28 02:53:45 +00:00
Update cheatsheets
This commit is contained in:
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Read a key from a specific configuration file:
|
||||
|
||||
`kwriteconfig5 --file {{path/to/file}} --group {{group_name}} --key {{key_name}}`
|
||||
`kreadconfig5 --file {{path/to/file}} --group {{group_name}} --key {{key_name}}`
|
||||
|
||||
- Check if systemd is used to start the Plasma session:
|
||||
|
||||
|
||||
@@ -10,12 +10,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create an ext2 filesystem in partition 1 of device b (`sdb1`):
|
||||
|
||||
`mkfs.ext2 {{/dev/sdb1}}`
|
||||
`mke2fs -t ext2 {{/dev/sdb1}}`
|
||||
|
||||
- Create an ext3 filesystem in partition 1 of device b (`sdb1`):
|
||||
|
||||
`mkfs.ext3 {{/dev/sdb1}}`
|
||||
`mke2fs -t ext3 {{/dev/sdb1}}`
|
||||
|
||||
- Create an ext4 filesystem in partition 1 of device b (`sdb1`):
|
||||
|
||||
`mkfs.ext4 {{/dev/sdb1}}`
|
||||
`mke2fs -t ext4 {{/dev/sdb1}}`
|
||||
|
||||
@@ -10,24 +10,24 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Copy a virtual machine:
|
||||
|
||||
`qm copy {{vm_id}} {{new_vm_id}}`
|
||||
`qm clone {{vm_id}} {{new_vm_id}}`
|
||||
|
||||
- Copy a virtual machine using a specific name:
|
||||
|
||||
`qm copy {{vm_id}} {{new_vm_id}} --name {{name}}`
|
||||
`qm clone {{vm_id}} {{new_vm_id}} --name {{name}}`
|
||||
|
||||
- Copy a virtual machine using a specific descriptionn:
|
||||
|
||||
`qm copy {{vm_id}} {{new_vm_id}} --description {{description}}`
|
||||
`qm clone {{vm_id}} {{new_vm_id}} --description {{description}}`
|
||||
|
||||
- Copy a virtual machine creating a full copy of all disks:
|
||||
|
||||
`qm copy {{vm_id}} {{new_vm_id}} --full`
|
||||
`qm clone {{vm_id}} {{new_vm_id}} --full`
|
||||
|
||||
- Copy a virtual machine using a specific format for file storage (requires `--full`):
|
||||
|
||||
`qm copy {{vm_id}} {{new_vm_id}} --full --format {{qcow2|raw|vmdk}}`
|
||||
`qm clone {{vm_id}} {{new_vm_id}} --full --format {{qcow2|raw|vmdk}}`
|
||||
|
||||
- Copy a virtual machine then add it to a specific pool:
|
||||
|
||||
`qm copy {{vm_id}} {{new_vm_id}} --pool {{pool_name}}`
|
||||
`qm clone {{vm_id}} {{new_vm_id}} --pool {{pool_name}}`
|
||||
|
||||
@@ -11,4 +11,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Import a VMDK/qcow2/raw disk image using a specific storage name:
|
||||
|
||||
`qm importdisk {{vm_id}} {{path/to/disk}} {{storage_name}} --format {{qcow2|raw|vmdk}}`
|
||||
`qm disk import {{vm_id}} {{path/to/disk}} {{storage_name}} --format {{qcow2|raw|vmdk}}`
|
||||
|
||||
Reference in New Issue
Block a user