mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-12 21:59:08 +00:00
Update cheatsheets
This commit is contained in:
@@ -18,24 +18,24 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Access a specific container's shell:
|
||||
|
||||
`pct enter {{100}}`
|
||||
`pct {{[en|enter]}} {{100}}`
|
||||
|
||||
- Create a container from template:
|
||||
|
||||
`pct create {{100}} {{/var/lib/vz/template/cache/distro-name.tar.zst}} -hostname {{hostname}} -password {{password}} --rootfs {{local-lvm}} --on-boot`
|
||||
`pct {{[cr|create]}} {{100}} {{/var/lib/vz/template/cache/distro-name.tar.zst}} -hostname {{hostname}} -password {{password}} --rootfs {{local-lvm}} --on-boot`
|
||||
|
||||
- Resize the container's disk to 20G:
|
||||
|
||||
`pct resize {{100}} {{rootfs|mpX}} {{20G}}`
|
||||
`pct {{[resi|resize]]} {{100}} {{rootfs|mpX}} {{20G}}`
|
||||
|
||||
- Show the configuration of a container, specifying its ID:
|
||||
|
||||
`pct config {{100}}`
|
||||
`pct {{[conf|config]}} {{100}}`
|
||||
|
||||
- Snapshot a specific container with description:
|
||||
|
||||
`pct snapshot {{100}} {{my-snapshot}} --description {{My snapshot description}}`
|
||||
`pct {{[sn|snapshot]}} {{100}} {{my-snapshot}} --description {{My snapshot description}}`
|
||||
|
||||
- Destroy a container and remove all related resources:
|
||||
|
||||
`pct destroy {{100}} --purge`
|
||||
`pct {{[des|destroy]}} {{100}} --purge`
|
||||
|
||||
Reference in New Issue
Block a user