Examples

Command Examples

Real-world examples of what you can do with ShellPilot.

File Management

Input

"Find all log files larger than 50MB and delete them"

find . -name '*.log' -size +50M -delete

Searches for .log files over 50MB and removes them

Input

"Recursively change permissions to 755 for all directories"

find . -type d -exec chmod 755 {} \;

Sets directory permissions to rwxr-xr-x

Input

"Create a backup of all Python files with timestamp"

tar -czf backup_$(date +%Y%m%d_%H%M%S).tar.gz *.py

Creates a timestamped compressed archive of Python files

Docker & Containers

Input

"Stop all running containers and remove them"

docker stop $(docker ps -q) && docker rm $(docker ps -aq)

Gracefully stops all containers, then removes them

Input

"Show disk usage of all Docker images"

docker images --format '{{.Repository}}:{{.Tag}} {{.Size}}' | sort -k2 -h

Lists images with their sizes, sorted by size

Input

"Clean up unused Docker resources"

docker system prune -af --volumes

Removes all unused containers, networks, images, and volumes

Git & Version Control

Input

"Undo the last commit but keep the changes"

git reset --soft HEAD~1

Moves HEAD back one commit, keeping changes staged

Input

"Find commits that modified a specific file"

git log --follow -p -- path/to/file

Shows commit history with diffs for a file, following renames

Input

"Create a patch from the last 3 commits"

git format-patch -3 HEAD

Generates patch files for the last 3 commits

System Administration

Input

"Show processes using the most memory"

ps aux --sort=-%mem | head -10

Lists top 10 memory-consuming processes

Input

"Monitor disk I/O in real-time"

iostat -x 1

Displays extended disk I/O statistics every second

Input

"Find which process is using port 8080"

lsof -i :8080

Lists processes bound to port 8080

Networking

Input

"Test if a remote port is open"

nc -zv hostname 443

Checks connectivity to port 443 on hostname

Input

"Download a file and resume if interrupted"

curl -C - -O https://example.com/large-file.zip

Downloads with resume capability for interrupted transfers

Input

"Show all established network connections"

ss -tunapl | grep ESTAB

Lists all established TCP/UDP connections with process info