>_
linuxcommand.dev
Home
Roadmap
Contact
EN
Dark
>_
>_
linuxcommand.dev
Home
Roadmap
Contact
Legal Notice
Privacy Policy
Language
DE
EN
Design
Dark
Startseite
›
kubectl exec
Container orchestration
kubectl exec
Run command in pod.
Ubuntu
CentOS
Debian
SUSE
Fedora
RHEL
macOS
Last updated:
2026-07-05
Report error
Syntax
Copy
$
kubectl exec [OPTIONS] POD -- COMMAND
Examples
Examples
$
kubectl exec -it mypod -- bash
Typical use cases
Standard usage
kubectl exec --help
Detailed Help
kubectl exec --help
Note
Run in pod.
Export
Text
JSON
Script