A comprehensive guide to key DevOps commands across popular tools including Linux, AWS, Terraform, Kubernetes, Ansible, Git, and Docker. This collection covers essential commands for managing infrastructure, deploying applications, and automating workflows.
Linux Commands
ls- List directory contentscd- Change directorygrep- Search text using patterns
AWS CLI Commands
aws s3 ls- List S3 bucketsaws ec2 describe-instances- List EC2 instances
Terraform Commands
terraform init- Initialize a working directoryterraform apply- Apply changes to infrastructure
Kubernetes Commands
kubectl get pods- List all podskubectl apply -f file.yaml- Apply configuration from file
Ansible Commands
ansible-playbook playbook.yml- Run a playbookansible all -m ping- Ping all hosts
Git Commands
git clone- Clone a repositorygit commit -m "message"- Commit changes
Docker Commands
docker ps- List running containersdocker-compose up- Start services
Master these commands to streamline your DevOps workflows.