Kommands

ranked by the kingdom · highest first
KategoryKommandMiniscriptionActions
aws-cli
aws s3 ls s3://<bucket>
List S3 bucket contents
▲ 0 view
ssh
ssh -i ~/.ssh/key.pem ubuntu@<host>
SSH into EC2 with PEM key
▲ 0 view
ssh
ssh-keygen -t ED25519 -C "<comment>" -f <keyname>
Generate ED25519 SSH key pair
▲ 0 view
linux
du -hsx */ 2>/dev/null
Show subdirectory sizes
▲ 0 view
linux
df -h
Show disk usage human readable
▲ 0 view
linux
ps aux | grep <process>
Find running process by name
▲ 0 view
linux
lsof -i :<port>
Find process using a port
▲ 0 view
linux
kill -9 <pid>
Force kill process by PID
▲ 0 view
linux
find . -name "<pattern>" -exec rm {} +
Find and delete matching files
▲ 0 view
linux
rsync -r <source>/ <destination>/
Recursively sync two directories
▲ 0 view
linux
watch -n1 <command>
Repeat command every second
▲ 0 view
linux
python3 -m http.server 8000
Serve current directory over HTTP
▲ 0 view
networking
host <domain>
Look up DNS records for domain
▲ 0 view
networking
dig @8.8.8.8 A <domain>
Query Google DNS for A record
▲ 0 view
networking
dig TXT <domain>
Check TXT records for domain
▲ 0 view
networking
nc -tz <host> <port>
Test TCP connectivity to host
▲ 0 view
networking
curl -sI <url>
Get HTTP response headers only
▲ 0 view
networking
ngrok http 3000
Expose local port 3000 publicly
▲ 0 view
networking
ngrok config add-authtoken <token>
Configure ngrok authentication token
▲ 0 view
github-cli
gh secret set <SECRET_NAME>
Set a GitHub Actions secret
▲ 0 view
github-cli
cat <file> | gh secret set <SECRET_NAME>
Pipe file content as GitHub secret
▲ 0 view
github-cli
gh repo list
List your GitHub repositories
▲ 0 view
github-cli
gh repo create <name> --private
Create new private repository
▲ 0 view
docker
docker ps
List running containers
▲ 0 view
python
conda activate ./env
Activate local conda environment
▲ 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