mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-01 16:42:35 +00:00
22 lines
460 B
Plaintext
22 lines
460 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# pct exec
|
|
|
|
> Launch a command inside a specified container.
|
|
> More information: <https://pve.proxmox.com/pve-docs/pct.1.html>.
|
|
|
|
- Launch a command in a container:
|
|
|
|
`pct {{[ex|exec]}} {{100}} {{command}}`
|
|
|
|
- Open a bash shell in a container:
|
|
|
|
`pct {{[ex|exec]}} {{100}} bash`
|
|
|
|
- Pass arguments to the command:
|
|
|
|
`pct {{[ex|exec]}} {{100}} -- {{command}} {{arguments}}`
|