You might also like2

How to use

  1. Search commands by name, description, or tags
  2. Filter by category (git, docker, find, grep, etc.)
  3. Click on a command to copy it to clipboard
  4. Browse commands to discover new ones
Search Commands
git
git reset --hard HEAD~1

Undo last commit and discard changes

Resets the current branch to the previous commit, discarding all changes

Examples:

git reset --hard HEAD~3
git reset --hard origin/main
undoresetcommitdiscard
git
git stash

Temporarily save uncommitted changes

Examples:

git stash pop
git stash list
git stash drop
stashsavetemporary
git
git cherry-pick <commit>

Apply a specific commit to current branch

Examples:

git cherry-pick abc123
git cherry-pick HEAD~2
cherry-pickcommitapply
git
git rebase -i HEAD~3

Interactive rebase of last 3 commits

Examples:

git rebase -i HEAD~5
git rebase -i origin/main
rebaseinteractiveedit
find
find . -name '*.txt'

Find files by name pattern

Examples:

find /home -name '*.log'
find . -iname 'readme*'
findsearchfiles
find
find . -type f -mtime -7

Find files modified in last 7 days

Examples:

find . -mtime -1
find . -mtime +30
findmodifiedtime
find
find . -size +100M

Find files larger than 100MB

Examples:

find . -size +1G
find . -size -10k
findsizelarge
grep
grep -r 'pattern' .

Search for pattern recursively

Examples:

grep -r 'error' src/
grep -ri 'TODO' .
grepsearchpattern
grep
grep -E 'pattern1|pattern2' file.txt

Search with multiple patterns

Examples:

grep -E 'error|warning' log.txt
grepmultipleregex
docker
docker run -d -p 8080:80 nginx

Run container in detached mode with port mapping

Examples:

docker run -d -p 3000:3000 node:18
dockerrunport
docker
docker-compose up -d

Start services in detached mode

Examples:

docker-compose down
docker-compose logs
dockercomposeservices
archive
tar -czf archive.tar.gz directory/

Create compressed tar archive

Examples:

tar -xzf archive.tar.gz
tar -czf backup.tar.gz /home
tarcompressarchive
archive
zip -r archive.zip directory/

Create zip archive

Examples:

unzip archive.zip
zip -r backup.zip /home
zipcompressarchive
ssh
ssh user@hostname

Connect to remote server

Examples:

ssh -p 2222 user@host
ssh -i key.pem user@host
sshremoteconnect
ssh
scp file.txt user@host:/path/

Copy file to remote server

Examples:

scp -r folder/ user@host:/path/
sshcopyfile
curl
curl -X POST -H 'Content-Type: application/json' -d '{}' url

Send POST request with JSON

Examples:

curl -X GET url
curl -O url
curlhttprequest
permissions
chmod +x script.sh

Make file executable

Examples:

chmod 755 file
chmod -R 644 directory/
chmodpermissionsexecutable