Tool Hub

Antisèche CLI

Aide-mémoire consultable pour les commandes courantes git/docker/kubectl/curl/find

34 commands

git
Show last 10 commits as one-line summaries
git log --oneline -10
git
Compact summary of changed files
git diff --stat
git
Save uncommitted changes with a label
git stash push -m 'wip'
git
Create and switch to new branch
git checkout -b feature/foo
git
Force-push safely (fails if remote moved)
git push origin HEAD --force-with-lease
git
Interactive rebase last 5 commits
git rebase -i HEAD~5
git
Visual branch graph
git log --all --graph --oneline
git
Show all HEAD movements (recovery from accidents)
git reflog
git
Who changed lines 10-20 in file.ts
git blame file.ts -L 10,20
git
Binary search for the commit that introduced a bug
git bisect start && git bisect bad && git bisect good <sha>
docker
List all containers in tabular format
docker ps -a --format 'table {{.ID}}\t{{.Image}}\t{{.Status}}'
docker
Open a shell inside a running container
docker exec -it <container> sh
docker
Follow container logs (tail -f)
docker logs -f <container>
docker
Remove all unused images, containers, networks, and volumes
docker system prune -a --volumes
docker
Rebuild images and start services in detached mode
docker compose up -d --build
docker
One-shot container resource usage
docker stats --no-stream
docker
Container state with jq
docker inspect <container> | jq '.[].State'
kubectl
Watch pod status in a namespace
kubectl get pods -n <namespace> -w
kubectl
Follow logs from a specific container
kubectl logs -f <pod> -c <container>
kubectl
Open a shell in a pod
kubectl exec -it <pod> -- /bin/sh
kubectl
Detailed pod info (events, conditions)
kubectl describe pod <pod>
kubectl
Preview changes without applying
kubectl apply -f manifest.yaml --dry-run=client -o yaml
kubectl
Watch deployment rollout
kubectl rollout status deployment/<name>
kubectl
Rollback to previous deployment
kubectl rollout undo deployment/<name>
curl
GET with response headers shown
curl -i https://api.example.com
curl
POST JSON body
curl -X POST -H 'Content-Type: application/json' -d '{"k":"v"}' https://api.example.com
curl
Follow redirects, save to file
curl -L https://x.com -o output.html
curl
Measure total time, discard body
curl -w '\ntime_total: %{time_total}s\n' -o /dev/null -s https://x.com
curl
HTTP basic auth
curl -u user:pass https://x.com
find
All .ts files excluding node_modules
find . -name '*.ts' -not -path '*/node_modules/*'
find
Files larger than 100 MB
find . -size +100M -type f
find
Files modified in the last 7 days
find . -mtime -7 -type f
find
Delete all .log files (be careful!)
find . -name '*.log' -delete
find
All .py files containing 'TODO'
find . -type f -name '*.py' -exec grep -l 'TODO' {} +

Comment utiliser

  1. Tapez un mot-clé dans le champ de recherche pour filtrer les commandes par description ou nom de drapeau.
  2. Utilisez les onglets d'outil (Tous, git, docker, kubectl, curl, find) pour restreindre les résultats à une CLI spécifique.
  3. Examinez les lignes de commande correspondantes, chacune affichant le badge d'outil, une description en anglais simple et la commande exacte.
  4. Cliquez sur le bouton de copie sur n'importe quelle ligne pour copier la commande directement dans le presse-papiers.

Exemples

  • Taper "rebase" avec le filtre git actif affiche des commandes comme git rebase --onto et git rebase -i HEAD~3.
  • Taper "prune" affiche docker system prune -af et git remote prune origin côte à côte lorsque Tous est sélectionné.

Vérifiez les sorties avant utilisation en production. Aucune garantie — voir Conditions.