# What is the purpose of the 'kubectl exec' command?

Kubernetes, Easy (Beginner), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-kubectl-exec-command

- A. To execute a new deployment
- B. To run a command in a container of a pod
- C. To execute a script on a node
- D. To run a Kubernetes job

**Answer:** To run a command in a container of a pod

**Explanation:** The 'kubectl exec' command allows you to execute a command inside a container of a running pod. This is useful for debugging, running administrative commands, or accessing a shell inside the container.
