
Here is a concise list of the
10 most used commands for GitHub (Git), Kubernetes, Docker, and AWS Lambda, based on modern usage patterns and leading references
## GitHub (Git) Commands
-
git clone: Clone a repository to the local machine
-
git status: Show the working directory status
-
git add: Add files to staging area[8].
-
git commit: Commit staged files with a message
-
git push: Push local commits to remote repo
-
git pull: Fetch and merge changes from remote
-
git branch: List, create, or delete branches
-
git checkout: Switch branches or restore files
-
git merge: Merge changes from a branch
-
git log: Show commit history
## Kubernetes (kubectl) Commands
-
kubectl get pods: List pods
-
kubectl get services: List services
-
kubectl get nodes: List nodes
-
kubectl describe pod <pod_name>: Detailed pod info
-
kubectl create -f <file.yaml>: Create resources from YAML
-
kubectl delete pod <pod_name>: Delete a pod
-
kubectl logs <pod_name>: View pod logs
-
kubectl exec -it <pod_name> -- /bin/sh: Run command in pod
-
kubectl apply -f <file.yaml>: Apply changes from YAML
-
kubectl scale deployment <name> --replicas=<number>: Scale deployment
## Docker Commands
-
docker run: Run a container from an image
-
docker pull: Download an image from registry
-
docker ps: List running containers
-
docker stop <container>: Stop a running container
-
docker start <container>: Start a stopped container
-
docker rm <container>: Remove a container
-
docker images: List images
-
docker rmi <image>: Remove an image
-
docker exec -it <container> /bin/bash: Run a shell in a running container
-
docker build -t <tag> .: Build an image from Dockerfile
## AWS Lambda CLI Commands
-
aws lambda list-functions: List all Lambda functions
-
aws lambda get-function --function-name <name>: Get function configuration
-
aws lambda create-function ...: Create a Lambda function
-
aws lambda update-function-code --function-name <name> --zip-file fileb://file.zip: Update function code
-
aws lambda invoke --function-name <name> output.txt: Invoke function
-
aws lambda delete-function --function-name <name>: Delete function
-
aws lambda update-function-configuration ...: Update function settings
-
aws lambda add-permission ...: Add resource permissions
-
aws lambda list-versions-by-function --function-name <name>: List all versions
-
aws lambda create-alias --function-name <name> --name <alias> --function-version <version>: Create alias
Citations:
[1] 25 Essential Git Commands for Developers
https://www.hatica.io/blog/git-commands-for-developers/[2] Kubectl Cheat Sheet - 15 Kubernetes Commands & Objects - Spacelift
https://spacelift.io/blog/kubernetes-cheat-sheet[3] Docker Docs
https://docs.docker.com/reference/cli/docker/[4] What are the most common AWS CLI commands used by developers?
https://moldstud.com/articles/p-what-are-the-most-common-aws-cli-commands-used-by-developers[5] Small snippets of AWS CLI commands for the AWS Lambda function
https://rahullokurte.com/small-snippets-of-aws-cli-commands-for-the-aws-lambda-function[6] Chapter 9: Kubectl Cheat Sheet - Kubernetes Guides - Apptio
https://www.apptio.com/topics/kubernetes/devops-tools/kubectl-cheat-sheet/