mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
pct, pveversion: add page (#13975)
This commit is contained in:
parent
bc1e1105a4
commit
ac6a6fcf24
2 changed files with 48 additions and 0 deletions
36
pages/linux/pct.md
Normal file
36
pages/linux/pct.md
Normal file
|
@ -0,0 +1,36 @@
|
|||
# pct
|
||||
|
||||
> Manage LXC containers in Proxmox.
|
||||
> More information: <https://pve.proxmox.com/pve-docs/pct.1.html>.
|
||||
|
||||
- List all containers:
|
||||
|
||||
`pct list`
|
||||
|
||||
- Start/Stop/Reboot a specific container:
|
||||
|
||||
`pct {{start|stop|reboot}} {{100}}`
|
||||
|
||||
- Access a specific container's shell:
|
||||
|
||||
`pct 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`
|
||||
|
||||
- Resize the container's disk to 20G:
|
||||
|
||||
`pct resize {{100}} {{rootfs|mpX}} {{20G}}`
|
||||
|
||||
- Show the configuration of a container, specifying its ID:
|
||||
|
||||
`pct config {{100}}`
|
||||
|
||||
- Snapshot a specific container with description:
|
||||
|
||||
`pct snapshot {{100}} {{my-snapshot}} --description {{My snapshot description}}`
|
||||
|
||||
- Destroy a container and remove all related resources:
|
||||
|
||||
`pct destroy {{100}} --purge`
|
12
pages/linux/pveversion.md
Normal file
12
pages/linux/pveversion.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
# pveversion
|
||||
|
||||
> Proxmox VE version info.
|
||||
> More information: <https://pve.proxmox.com/wiki/Command_Line_Tools#Software_version_check>.
|
||||
|
||||
- Print system version:
|
||||
|
||||
`pveversion`
|
||||
|
||||
- Print Proxmox subpackage versions:
|
||||
|
||||
`pveversion {{-v|--verbose}}`
|
Loading…
Add table
Reference in a new issue