Docker
Basic Docker Commands
| Command | Description |
|---|---|
docker --versionShow Docker version | |
docker infoDisplay system-wide information | |
docker helpList all commands | |
Images
| Command | Description |
|---|---|
docker pull <image>Download an image | |
docker imagesList images | |
docker rmi <image>Remove an image | |
Containers
| Command | Description |
|---|---|
docker run <image>Run a container | |
docker psList running containers | |
docker ps -aList all containers | |
docker stop <id>Stop container | |
docker rm <id>Remove container | |
Nvim
Basic Navigation
| Command | Description |
|---|---|
h / j / k / lMove left/down/up/right | |
:wSave file | |
:qQuit | |
ggGo top | |
shift + gGo to bottom | |
ctrl + dnavigate down the page in a big step | |
ctrl + unavigate up the page in a big step | |
ctrl + oGo to previous cursor position | |
ctrl + iGo to next cursor position | |
Editing
| Command | Description |
|---|---|
ddDelete line | |
yyCopy line | |
pPaste after cursor | |
shift + jmoves next line at the end of the current line | |
ciwchange internal word, deletes the word where the cursor is and enters insert mode | |
Tmux
Session Management
| Command | Description |
|---|---|
tmux new -s session_nameCreate new session | |
tmux lsList sessions | |
tmux attach -t session_nameAttach session | |
Panes & Windows
| Command | Description |
|---|---|
Ctrl+b %Split vertical | |
Ctrl+b "Split horizontal | |
Ctrl+b oSwitch pane | |
Ctrl+b xKills the current pane | |
Ctrl+b zEnters zen mode, maximize the current window, repeat to see all windows | |
Tabs
| Command | Description |
|---|---|
Ctrl+nSwitch to next tab | |
Ctrl+pSwitch to previous tab | |
Ctrl+cCreate a new tab and switch to it | |
Git
Branches & Commits
| Command | Description |
|---|---|
git statusShow changes | |
git add .Stage changes | |
git commit -m 'msg'Commit changes | |
git branchList branches | |
git checkout branch_nameSwitch branch | |
Linux
File & Text Processing
| Command | Description |
|---|---|
find . -name '*.txt'Find files | |
grep 'pattern' fileSearch text | |
awk '{print $1}' fileProcess text columns | |
xargs -n1 commandApply command to args | |
Kubernetes
Basic Kubectl
| Command | Description |
|---|---|
kubectl get podsList pods | |
kubectl describe pod <name>Show pod details | |
kubectl logs <pod>Show pod logs | |
NPM
Basic NPM Commands
| Command | Description |
|---|---|
npm install packageInstall package | |
npm run scriptRun npm script | |
npm outdatedCheck outdated packages | |
Golang
Go Basics
| Command | Description |
|---|---|
go run main.goRun Go file | |
go buildBuild binary | |
go test ./...Run tests | |
Nest.js
CLI Commands
| Command | Description |
|---|---|
nest new projectCreate new Nest project | |
nest generate module nameGenerate module | |
nest startStart app | |
SQL
Basic Queries
| Command | Description |
|---|---|
SELECT * FROM table;Select all rows | |
INSERT INTO table (...) VALUES (...);Insert row | |
UPDATE table SET column=value;Update row | |
DELETE FROM table WHERE ...;Delete row | |
Joins & Advanced
| Command | Description |
|---|---|
SELECT ... FROM a JOIN b ON ...;Join tables | |
SELECT ... FROM table WHERE ... ORDER BY ...;Filter & sort | |
SELECT ..., COUNT(*) OVER() ...;Window functions | |
AWS
Basic AWS CLI
| Command | Description |
|---|---|
aws s3 lsList buckets | |
aws ec2 describe-instancesList EC2 instances | |
aws iam list-usersList IAM users | |
Azure
Basic Azure CLI
| Command | Description |
|---|---|
az loginLogin to Azure | |
az group listList resource groups | |
az vm listList virtual machines | |
Terraform
Basic Terraform Commands
| Command | Description |
|---|---|
terraform initInitialize project | |
terraform planPreview changes | |
terraform applyApply configuration | |
terraform destroyDestroy resources | |