messages
listlengths
3
3
category
stringclasses
3 values
utility
stringclasses
89 values
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "do a dry-run rsync of docs to assets to see what would change" }, { "role": "assistant", "content": "rsync -avn docs/ assets/" } ]
single
rsync
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "what are the top 25 lines in nginx-access.log?" }, { "role": "assistant", "content": "head -n 25 nginx-access.log" } ]
single
head
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Make index.zip executable." }, { "role": "assistant", "content": "chmod +x index.zip" } ]
single
chmod
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Rename data.py to data.py.old" }, { "role": "assistant", "content": "mv data.py data.py.old" } ]
single
mv
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "check if auth.internal is reachable with 3 pings" }, { "role": "assistant", "content": "ping -c 3 auth.internal" } ]
single
ping
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "I need a script that categorizes a filename by extension using case (is a .csv an image, archive, doc?)." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nfile=\"${1:...
script
case
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Ping web01.example.org once and branch: print reachable or unreachable based on the result." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pip...
script
if
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Find the 10 most common 'permission denied'-related lines in output.log." }, { "role": "assistant", "content": "grep 'permission denied' output.log | ...
pipeline
grep
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "I need a retry wrapper around curl to https://www.internal/health: 10 attempts, 1s apart." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nmax=10\ndelay=1\nfor attem...
script
curl
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Print all IP addresses assigned to this host." }, { "role": "assistant", "content": "hostname -I" } ]
single
hostname
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "give the owner rwx and everyone else read on debug.txt" }, { "role": "assistant", "content": "chmod 744 debug.txt" } ]
single
chmod
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Extract just the email addresses from server.conf." }, { "role": "assistant", "content": "grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' server.conf | sort -u" } ]
pipeline
sed
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Sync the migrations directory to docs preserving attributes." }, { "role": "assistant", "content": "rsync -av migrations/ docs/" } ]
single
rsync
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Show me how to list the unique 'fatal' messages in messages." }, { "role": "assistant", "content": "grep 'fatal' messages | sort -u" } ]
pipeline
grep
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show me the 20 biggest files under logs." }, { "role": "assistant", "content": "find logs -type f -printf '%s %p\\n' 2>/dev/null | sort -rn | hea...
pipeline
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Follow the chronyd journal but only show lines mentioning 'disk full'." }, { "role": "assistant", "content": "journalctl -u chronyd -f | grep --line-buffered -i 'disk full'" } ]
pipeline
journalctl
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "I need to follow the sshd journal but only show lines mentioning 'rejected'." }, { "role": "assistant", "content": "journalctl -u sshd -f | grep --line-buffered -i ...
pipeline
journalctl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Write a loop that restarts these services in order: haproxy grafana-server docker." }, { "role": "assistant", "content": "#!/usr/bin/env bash\ns...
script
for
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Write a backup script that gzip-compresses /home/deploy into a timestamped tarball under /var/backups and keeps only the 3 newest." }, { "role": "ass...
script
tar
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show me the 5 biggest files under tmp." }, { "role": "assistant", "content": "find tmp -type f -printf '%s %p\\n' 2>/dev/null | sort -rn | head -...
pipeline
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Process all .html files under /opt/app with checksum with sha256sum using 8 parallel workers via xargs." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=/opt/app...
script
xargs
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Determine the file type of data.csv." }, { "role": "assistant", "content": "file data.csv" } ]
single
file
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Give me a frequency tally of column 3 in nginx-error.log and show the 25 biggest." }, { "role": "assistant", "content": "awk '{print $3}' nginx-e...
pipeline
awk
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Find the 10 most common '404'-related lines in ingest.log." }, { "role": "assistant", "content": "grep '404' ingest.log | sort | uniq -c | sort -nr | head -n 10" } ]
pipeline
grep
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "I need getopts handling for three options: -t, -d and -p; print usage on bad input." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ntag=\"\"; dir=\"\"; port=\"\"\nu...
script
getopts
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "copy the whole vendor folder to vendor_copy recursively" }, { "role": "assistant", "content": "cp -r vendor vendor_copy" } ]
single
cp
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "I need a bash script that removes each matching file for all .gif files under /mnt/storage." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pip...
script
rm
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Write a small script that runs checksum with sha256sum on every .md file in backups, 8 jobs in parallel." }, { "role": "assistant", "content": "#!/usr/bin/env bash\...
script
xargs
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Create a script that loops over every .html file in /opt/app and removes each matching file." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=/opt/app\nfor f in ...
script
rm
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Back up all PostgreSQL databases individually to /srv/backup as compressed dumps." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo...
script
pg_dump
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "get the number of items in the JSON array at https://monitor.example.com/api/items" }, { "role": "assistant", "content": "curl -s https://monito...
pipeline
curl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show me how to count 'overflow' occurrences in the chronyd journal today." }, { "role": "assistant", "content": "journalctl -u chronyd --since today -...
pipeline
journalctl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "list PIDs and names of processes matching mysqld" }, { "role": "assistant", "content": "pgrep -a mysqld" } ]
single
pgrep
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Add a timestamp column to vmstat, 1s interval, 30 rounds." }, { "role": "assistant", "content": "vmstat -t 1 30" } ]
single
vmstat
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Run 'uptime' on www.example.org over SSH without an interactive session." }, { "role": "assistant", "content": "ssh git@www.example.org uptime" ...
single
ssh
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Count total lines across all .md files in cache." }, { "role": "assistant", "content": "find cache -type f -name '*.md' -print0 | xargs -0 cat | wc -l" } ]
pipeline
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write me a script that verifies the environment variables DB_PASS, PORT and REDIS_URL are all set before running." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nfo...
script
env
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "How many lines in app.log mention 'retry'?" }, { "role": "assistant", "content": "grep -c 'retry' app.log | cat" } ]
pipeline
grep
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "move all .txt files into the downloads directory" }, { "role": "assistant", "content": "mv *.txt downloads/" } ]
single
mv
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Find the most recently modified file in releases." }, { "role": "assistant", "content": "ls -t releases | head -n 1" } ]
pipeline
ls
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Find the biggest files under /home/alice." }, { "role": "assistant", "content": "du -ah /home/alice | sort -rh | head -n 20" } ]
pipeline
du
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Make notes.pdf executable." }, { "role": "assistant", "content": "chmod +x notes.pdf" } ]
single
chmod
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "change permissions to 644 on all files under /var/www" }, { "role": "assistant", "content": "find /var/www -type f -print0 | xargs -0 chmod 644"...
pipeline
find
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Parse command-line flags -o (output), -i (input) and -t (tag) using getopts and validate that -o is provided." }, { "role": "assistant", "conten...
script
getopts
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Count 'deprecated' occurrences in the rabbitmq journal today." }, { "role": "assistant", "content": "journalctl -u rabbitmq --since today --no-pa...
pipeline
journalctl
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "I need a bash script that makes each file read-only for all .gz files under /var/www." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\...
script
chmod
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Fail fast if any of DB_HOST, PORT, AWS_REGION is unset — write it as a bash guard." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nfor var in DB_HOST PORT AWS_REGIO...
script
env
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "I need a script that generates an nginx config file for example.com using a here-document." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndomain=example.com\ncat >...
script
heredoc
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Given config.log, show the last 15 lines." }, { "role": "assistant", "content": "cat config.log | tail -n 15" } ]
pipeline
tail
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "For each .txt file under data, record a sha256 checksum in a manifest file." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipef...
script
for
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "I need a retry wrapper around curl to https://auth.corp.net/health: 5 attempts, 1s apart." }, { "role": "assistant", "content": "#!/usr/bin/env b...
script
curl
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Extract just the email addresses from invoice.md." }, { "role": "assistant", "content": "grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' invoice.md | sort -u" } ]
pipeline
sed
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Copy build.zip into the tests directory." }, { "role": "assistant", "content": "cp build.zip tests/" } ]
single
cp
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Make a backup copy of sales.html called sales.html.bak" }, { "role": "assistant", "content": "cp sales.html sales.html.bak" } ]
single
cp
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Give me a script that iterates over logs/*.png and makes a .bak copy of each file." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=logs\nfor f in \"$dir\"/*.png...
script
cp
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Change the owner of changelog.log to git." }, { "role": "assistant", "content": "sudo chown git changelog.log" } ]
single
chown
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Write a backup script that xz-compresses /var/lib/app into a timestamped tarball under /mnt/backup and keeps only the 5 newest." }, { "role": "assist...
script
tar
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "From notes.tsv, show the 20 longest lines." }, { "role": "assistant", "content": "cat notes.tsv | awk '{ print length, $0 }' | sort -rn | head -2...
pipeline
awk
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "I need to tally how many times each log level appears in metrics.log." }, { "role": "assistant", "content": "grep -oE '(INFO|WARN|ERROR|DEBUG)' metrics.log | sort | uniq -c | sort -nr" } ]
pipeline
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Retry git fetch from origin at most 5 times with a 2-second backoff, failing loudly if it never succeeds." }, { "role": "assistant", "content": "#!/usr/bin/env bash...
script
git
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write a Bash script that alerts if the root filesystem is more than 95% full." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nthreshold=95\nusage=$(df / | awk 'NR==...
script
if
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show TCP connections to cdn.local." }, { "role": "assistant", "content": "ss -tn dst cdn.local" } ]
single
ss
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Timestamped vmstat every 5s for 3 samples." }, { "role": "assistant", "content": "vmstat -t 5 3" } ]
single
vmstat
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Count how many times each line appears in customer.json, most frequent first." }, { "role": "assistant", "content": "sort customer.json | uniq -c...
pipeline
sort
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Given dump.yaml, count each unique line, most common first." }, { "role": "assistant", "content": "cat dump.yaml | sort | uniq -c | sort -nr" } ]
pipeline
uniq
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Please show a hex dump of the first 64 bytes in dump.log." }, { "role": "assistant", "content": "xxd -l 64 dump.log" } ]
single
xxd
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "I need getopts handling for three options: -l, -o and -d; print usage on bad input." }, { "role": "assistant", "content": "#!/usr/bin/env bash\n...
script
getopts
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Extract just the email addresses from transaction.yaml." }, { "role": "assistant", "content": "grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' transaction.yaml | sort -u" } ]
pipeline
sed
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "locate files under /var/lib/mysql modified in the last 14 days" }, { "role": "assistant", "content": "find /var/lib/mysql -type f -mtime -14" } ]
single
find
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Can you write a script that checks whether mysqld is running and starts it if not?" }, { "role": "assistant", "content": "#!/usr/bin/env bash\nse...
script
if
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "extract all the 'name' fields from https://registry.example.com/api/users" }, { "role": "assistant", "content": "curl -s https://registry.example.com/api/users | jq...
pipeline
curl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show the systemd journal for the nginx service." }, { "role": "assistant", "content": "journalctl -u nginx" } ]
single
journalctl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Please show just the first line in manifest.sql." }, { "role": "assistant", "content": "head -n 1 manifest.sql" } ]
single
head
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "which directories under /var/www are eating the most space?" }, { "role": "assistant", "content": "du -h --max-depth=1 /var/www | sort -rh" } ]
pipeline
du
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a backup script that gzip-compresses /opt/app into a timestamped tarball under /data/backup and keeps only the 10 newest." }, { "role": "assistant",...
script
tar
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Read auth.txt, then sort it and drop duplicate lines — as a pipeline." }, { "role": "assistant", "content": "cat auth.txt | sort -u" } ]
pipeline
sort
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Find all .pdf files under downloads and delete them. (Careful: destructive.)" }, { "role": "assistant", "content": "find downloads -type f -name '*.pdf' -print0 | x...
pipeline
find
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "keep watching request.log for new entries and start from the last 20 lines" }, { "role": "assistant", "content": "tail -n 20 -f request.log" } ]
single
tail
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Parse sales.csv as comma-separated id,name,email using while read and print each name." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail...
script
while
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Check if summary.yaml exists and cat it, otherwise say it's missing." }, { "role": "assistant", "content": "[ -f summary.yaml ] && cat summary.yaml || echo 'not found'" } ]
pipeline
chain
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "How do I list files in lib sorted by size?" }, { "role": "assistant", "content": "ls -lS lib" } ]
single
ls
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "move all .html files into the project directory" }, { "role": "assistant", "content": "mv *.html project/" } ]
single
mv
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Take inventory.json and count the lines." }, { "role": "assistant", "content": "cat inventory.json | wc -l" } ]
pipeline
wc
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Copy settings.py into the project directory." }, { "role": "assistant", "content": "cp settings.py project/" } ]
single
cp
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Give me a script that iterates over /srv/data/*.yaml and makes a .bak copy of each file." }, { "role": "assistant", "content": "#!/usr/bin/env ba...
script
cp
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show detailed metadata for auth.gz." }, { "role": "assistant", "content": "stat auth.gz" } ]
single
stat
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "delete all blank lines from server.conf" }, { "role": "assistant", "content": "sed '/^$/d' server.conf" } ]
single
sed
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write a shell script that deletes .tmp files older than 180 days from cache and logs what it removed." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ntarget=cache\n...
script
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Check if auth.yaml exists and cat it, otherwise say it's missing." }, { "role": "assistant", "content": "[ -f auth.yaml ] && cat auth.yaml || echo 'not found'" } ]
pipeline
chain
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "download https://8.8.8.8/list.txt and count the lines" }, { "role": "assistant", "content": "curl -s https://8.8.8.8/list.txt | wc -l" } ]
pipeline
curl
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Loop over all subdirectories of /mnt/storage and print each one's total size." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nfor dir in /mnt/storage/*/; do\n [ -d...
script
for
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Clean up uploads: remove .cache files not modified in 21 days, recording each deletion." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefai...
script
find
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Create an empty file named users.gz." }, { "role": "assistant", "content": "touch users.gz" } ]
single
touch
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Find 'Connection refused' in api.log plus 3 lines of context around each match." }, { "role": "assistant", "content": "grep -C 3 'Connection refu...
single
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Create a script that converts every .png in the current directory to .jpg using ImageMagick, keeping originals." }, { "role": "assistant", "content": "#!/usr/bin/en...
script
for
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "On the file auth.old, print it with line numbers." }, { "role": "assistant", "content": "nl auth.old" } ]
single
nl
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Write a start/stop/restart/status control script for rabbitmq using a case statement." }, { "role": "assistant", "content": "#!/usr/bin/env bash\...
script
case
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "replace tabs with commas in event.yaml and write to event.yaml.csv" }, { "role": "assistant", "content": "sed 's/\\t/,/g' event.yaml > event.yaml...
pipeline
sed
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Take schema.txt and count the lines." }, { "role": "assistant", "content": "cat schema.txt | wc -l" } ]
pipeline
wc
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Read schema.log, then count the lines — as a pipeline." }, { "role": "assistant", "content": "cat schema.log | wc -l" } ]
pipeline
wc