# Which kubectl command is used to view the logs of a pod?

Kubernetes, Easy (Beginner), Commands. https://k8wiz.com/uquiz/which-kubectl-command-is-used-to-view-the-logs-of-a-pod

- A. kubectl logs <pod-name>
- B. kubectl get logs <pod-name>
- C. kubectl describe logs <pod-name>
- D. kubectl view logs <pod-name>

**Answer:** kubectl logs <pod-name>

**Explanation:** The 'kubectl logs <pod-name>' command is used to view the logs of a specified pod. This is useful for debugging and monitoring applications running in pods.
