Kommands

ranked by the kingdom · highest first
KategoryKommandMiniscriptionActions
linux
cat file.json | jq ". | length"
get json object count
▲ 1 view
docker
docker ps -a
List all containers including stopped
▲ 1 view
docker
docker compose up --build
Rebuild images and start services
▲ 0 view
docker
docker compose restart app
Restart a specific service
▲ 0 view
docker
docker exec -it <container> /bin/bash
Open shell in running container
▲ 0 view
docker
docker logs <container> -f
Follow container logs live
▲ 0 view
docker
docker system prune -a
Remove all unused Docker resources
▲ 0 view
git
git log --oneline
Compact one-line commit history
▲ 0 view
docker
docker compose run -it --rm web ./bin/rails console
Rails console inside Docker
▲ 0 view
docker
docker compose run --rm web ./bin/rails db:migrate
Run migrations inside Docker
▲ 0 view
docker
docker compose run --rm web ./bin/rails runner "<ruby code>"
Run Ruby code in Rails context
▲ 0 view
git
git pull
Fetch and merge remote changes
▲ 0 view
git
git push origin main --force
Force push to main branch
▲ 0 view
git
git reset --hard HEAD~1
Undo last commit discard changes
▲ 0 view
git
git remote -v
Show remote repository URLs
▲ 0 view
docker
docker images
List local Docker images
▲ 0 view
git
git checkout -b <branch-name>
Create and switch to new branch
▲ 0 view
git
git stash
Temporarily save uncommitted changes
▲ 0 view
git
git stash pop
Apply most recent stash
▲ 0 view
git
git diff --staged
Show staged changes before commit
▲ 0 view
git
git clone --depth 1 <url>
Shallow clone single commit history
▲ 0 view
aws-cli
aws sso login --profile <profile>
Authenticate with AWS SSO
▲ 0 view
aws-cli
aws s3 cp s3://<bucket>/<file> ./ --profile <profile>
Download file from S3 bucket
▲ 0 view
aws-cli
aws s3 sync --delete . s3://<bucket>/ --profile <profile>
Sync local directory to S3
▲ 0 view
docker
docker compose down
Stop and remove containers
▲ 0 view

Got a one-liner that saved your day?

Join the Kingdom to upvote kommands and kontribute your own. Free, forever.

Join the Kingdom