Tool Hub

CLI 치트시트

git/docker/kubectl/curl/find 명령어 검색 가능한 치트시트

34개 커맨드

git
최근 10개 커밋을 한 줄 요약으로 표시
git log --oneline -10
git
변경된 파일의 간단한 요약
git diff --stat
git
라벨과 함께 미커밋 변경사항 저장
git stash push -m 'wip'
git
새 브랜치 생성 및 전환
git checkout -b feature/foo
git
안전하게 force push (원격이 변했으면 실패)
git push origin HEAD --force-with-lease
git
최근 5개 커밋 인터랙티브 rebase
git rebase -i HEAD~5
git
브랜치 그래프 시각화
git log --all --graph --oneline
git
모든 HEAD 이동 기록 (사고 복구용)
git reflog
git
file.ts의 10-20 라인을 누가 변경했는지
git blame file.ts -L 10,20
git
버그를 도입한 커밋을 이진 탐색
git bisect start && git bisect bad && git bisect good <sha>
docker
모든 컨테이너를 표 형식으로 나열
docker ps -a --format 'table {{.ID}}\t{{.Image}}\t{{.Status}}'
docker
실행 중인 컨테이너 내부에서 셸 열기
docker exec -it <container> sh
docker
컨테이너 로그 follow (tail -f)
docker logs -f <container>
docker
사용하지 않는 이미지·컨테이너·네트워크·볼륨 모두 제거
docker system prune -a --volumes
docker
이미지 재빌드 후 detached 모드로 서비스 시작
docker compose up -d --build
docker
컨테이너 리소스 사용량 일회 조회
docker stats --no-stream
docker
jq 로 컨테이너 상태 추출
docker inspect <container> | jq '.[].State'
kubectl
네임스페이스의 파드 상태 watch
kubectl get pods -n <namespace> -w
kubectl
특정 컨테이너의 로그 follow
kubectl logs -f <pod> -c <container>
kubectl
파드에서 셸 열기
kubectl exec -it <pod> -- /bin/sh
kubectl
파드 상세 정보 (이벤트·conditions)
kubectl describe pod <pod>
kubectl
적용 없이 변경사항 미리보기
kubectl apply -f manifest.yaml --dry-run=client -o yaml
kubectl
배포 롤아웃 watch
kubectl rollout status deployment/<name>
kubectl
이전 배포로 롤백
kubectl rollout undo deployment/<name>
curl
응답 헤더와 함께 GET
curl -i https://api.example.com
curl
JSON body POST
curl -X POST -H 'Content-Type: application/json' -d '{"k":"v"}' https://api.example.com
curl
리다이렉트 따라가서 파일로 저장
curl -L https://x.com -o output.html
curl
총 시간 측정, body 버림
curl -w '\ntime_total: %{time_total}s\n' -o /dev/null -s https://x.com
curl
HTTP basic 인증
curl -u user:pass https://x.com
find
node_modules 제외 모든 .ts 파일
find . -name '*.ts' -not -path '*/node_modules/*'
find
100MB 초과 파일
find . -size +100M -type f
find
최근 7일 동안 수정된 파일
find . -mtime -7 -type f
find
모든 .log 파일 삭제 (주의!)
find . -name '*.log' -delete
find
'TODO' 가 포함된 모든 .py 파일
find . -type f -name '*.py' -exec grep -l 'TODO' {} +

사용 방법

  1. 설명 또는 플래그 이름으로 명령을 필터링하려면 검색 필드에 키워드를 입력하세요.
  2. 도구 탭(모두, git, docker, kubectl, curl, find)을 사용하여 특정 CLI로 결과를 좁히세요.
  3. 일치하는 명령 행을 검색하세요. 각 행은 도구 배지, 일반 영어 설명, 정확한 명령을 표시합니다.
  4. 행의 복사 버튼을 클릭하여 명령을 클립보드에 직접 복사하세요.

예제

  • "rebase"를 입력하고 git 필터가 활성화되면 git rebase --onto 및 git rebase -i HEAD~3 같은 명령이 표시됩니다.
  • "prune"를 입력하면 "모두" 선택 시 docker system prune -af와 git remote prune origin이 나란히 표시됩니다.

프로덕션 사용 전 출력을 검증하십시오. 보증 없음 — 자세한 내용은 이용약관.