messages
listlengths
3
3
category
stringclasses
3 values
utility
stringclasses
89 values
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Set export.js to permissions 644." }, { "role": "assistant", "content": "chmod 644 export.js" } ]
single
chmod
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Give me a script that iterates over data/*.sql and makes each file read-only." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -e...
script
chmod
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "For every immediate subdirectory of /home/alice, show how much disk it uses." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nfor dir in /home/alice/*/; do\n [ -d \...
script
for
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "What are the disk usage of /var/log broken down one level deep?" }, { "role": "assistant", "content": "du -h --max-depth=1 /var/log 2>/dev/null | sort -rh" } ]
pipeline
du
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Write a script that verifies the environment variables REDIS_URL, ENV and PORT are all set before running." }, { "role": "assistant", "content":...
script
env
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Find the 20 hottest values in column 5 of report.tsv (by frequency)." }, { "role": "assistant", "content": "awk '{print $5}' report.tsv | sort | uniq -c | sort -nr | head -n 20" } ]
pipeline
awk
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Change the owner of auth.sql to operator." }, { "role": "assistant", "content": "sudo chown operator auth.sql" } ]
single
chown
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Copy results.sql into the dist directory." }, { "role": "assistant", "content": "cp results.sql dist/" } ]
single
cp
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a health check that reports UP/DOWN for the chrome process via its exit code." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -e...
script
if
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Total the resident memory of all haproxy processes in MB." }, { "role": "assistant", "content": "ps -C haproxy -o rss= | awk '{s+=$1} END{print s/1024...
pipeline
ps
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "I need a rotating backup: archive /opt/app into /backup with gzip, retain 5 copies." }, { "role": "assistant", "content": "#!/usr/bin/env bash\ns...
script
tar
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Extract just the email addresses from audit.yaml." }, { "role": "assistant", "content": "grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' audit.yaml | sort...
pipeline
sed
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Report virtual-memory statistics every 3 seconds, 5 times." }, { "role": "assistant", "content": "vmstat 3 5" } ]
single
vmstat
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "On the file transaction.gz, show the last 20 lines." }, { "role": "assistant", "content": "tail -n 20 transaction.gz" } ]
single
tail
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "send a GET request to https://git.service.io/api and show the response headers" }, { "role": "assistant", "content": "curl -I https://git.service...
single
curl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Count how often each column-1 value appears in api.log; show the 10 most common." }, { "role": "assistant", "content": "cut -d, -f1 api.log | sort | u...
pipeline
cut
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write a shell script that dumps every MySQL database into its own gzip file under /backup, keeping 10 days." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndest=/ba...
script
mysqldump
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Change the owner of schema.log to dave." }, { "role": "assistant", "content": "sudo chown dave schema.log" } ]
single
chown
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "I need to tally how many times each log level appears in worker.log." }, { "role": "assistant", "content": "grep -oE '(INFO|WARN|ERROR|DEBUG)' worker.log | sort | u...
pipeline
grep
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Retry curl to https://www.corp.net/health at most 10 times with a 2-second backoff, failing loudly if it never succeeds." }, { "role": "assistant", ...
script
curl
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Change the owner of summary.zip to bob." }, { "role": "assistant", "content": "sudo chown bob summary.zip" } ]
single
chown
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Fetch JSON from https://git.example.org/api/users and pretty-print it with jq." }, { "role": "assistant", "content": "curl -s https://git.example.org/...
pipeline
curl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Change the owner of release.gz to mysql." }, { "role": "assistant", "content": "sudo chown mysql release.gz" } ]
single
chown
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Loop through the .html files in /mnt/storage and moves each file into an archive/ subfolder — write it as a proper script." }, { "role": "assistant", ...
script
mv
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Show me the disk usage of config broken down one level deep." }, { "role": "assistant", "content": "du -h --max-depth=1 config 2>/dev/null | sor...
pipeline
du
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write a shell script that verifies the environment variables API_KEY, REDIS_URL and DB_HOST are all set before running." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefa...
script
env
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "change just the group of error.html to operators" }, { "role": "assistant", "content": "sudo chgrp operators error.html" } ]
single
chown
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Extended disk I/O stats every 10s, 3 samples." }, { "role": "assistant", "content": "iostat -x 10 3" } ]
single
iostat
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "I/O stats in MB/s every 5s for 20 samples." }, { "role": "assistant", "content": "iostat -m 5 20" } ]
single
iostat
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "locate files under downloads modified in the last 90 days" }, { "role": "assistant", "content": "find downloads -type f -mtime -90" } ]
single
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "replace tabs with commas in customer.log and write to customer.log.csv" }, { "role": "assistant", "content": "sed 's/\\t/,/g' customer.log > customer....
pipeline
sed
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "replace tabs with commas in catalog.yaml and write to catalog.yaml.csv" }, { "role": "assistant", "content": "sed 's/\\t/,/g' catalog.yaml > cata...
pipeline
sed
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Edit error.log in place, replacing 'kernel' with 'localhost'." }, { "role": "assistant", "content": "sed -i 's/kernel/localhost/g' error.log" } ]
single
sed
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Background 'make -j4' at nice level 19." }, { "role": "assistant", "content": "nice -n 19 make -j4 &" } ]
single
nice
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Tally column 1 of data.tsv and print the 20 top values by count." }, { "role": "assistant", "content": "awk '{print $1}' data.tsv | sort | uniq -c | sort -nr | head...
pipeline
awk
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Help me total the resident memory of all elasticsearch processes in MB." }, { "role": "assistant", "content": "ps -C elasticsearch -o rss= | awk '{s+=...
pipeline
ps
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Run vmstat with MB units every 10 seconds for 20 rounds." }, { "role": "assistant", "content": "vmstat -S M 10 20" } ]
single
vmstat
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Follow the firewalld journal but only show lines mentioning 'permission denied'." }, { "role": "assistant", "content": "journalctl -u firewalld -f | grep --line-buf...
pipeline
journalctl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "From response.yaml, keep only non-empty lines." }, { "role": "assistant", "content": "cat response.yaml | grep -v '^$'" } ]
pipeline
grep
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Move backup.log into the uploads folder." }, { "role": "assistant", "content": "mv backup.log uploads/" } ]
single
mv
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "I need to list the unique 'WARNING' messages in request.log." }, { "role": "assistant", "content": "grep 'WARNING' request.log | sort -u" } ]
pipeline
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "For catalog.tar.gz, show its size, owner and permissions." }, { "role": "assistant", "content": "stat catalog.tar.gz" } ]
single
stat
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Give me a script that iterates over /mnt/storage/*.xml and prints the line count of each file." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=/mnt/storage\nfor...
script
wc
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Back up /var/www to /data/backup as a dated bzip2 archive, pruning all but the last 14 backups." }, { "role": "assistant", "content": "#!/usr/bi...
script
tar
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Show me the 10 biggest files under releases." }, { "role": "assistant", "content": "find releases -type f -printf '%s %p\\n' 2>/dev/null | sort ...
pipeline
find
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "do a dry-run rsync of downloads to lib to see what would change" }, { "role": "assistant", "content": "rsync -avn downloads/ lib/" } ]
single
rsync
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Please determine what kind of file it is in users.html." }, { "role": "assistant", "content": "file users.html" } ]
single
file
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "replace tabs with commas in archive.md and write to archive.md.csv" }, { "role": "assistant", "content": "sed 's/\\t/,/g' archive.md > archive.m...
pipeline
sed
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "copy the whole bin folder to bin_copy recursively" }, { "role": "assistant", "content": "cp -r bin bin_copy" } ]
single
cp
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Find the process listening on port 5000." }, { "role": "assistant", "content": "lsof -i :5000" } ]
single
lsof
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "I need to show the last 20 lines containing 'timeout' in request.log." }, { "role": "assistant", "content": "grep 'timeout' request.log | tail -...
pipeline
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "POST a JSON body to https://github.com/api/users" }, { "role": "assistant", "content": "curl -X POST -H 'Content-Type: application/json' -d '{\"name\":\"alice\"}' h...
single
curl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a loop that restarts these services in order: grafana-server fail2ban mariadb." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -...
script
for
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Copy payment.yaml into migrations only if it's newer than what's there." }, { "role": "assistant", "content": "cp -u payment.yaml migrations/" ...
single
cp
[ { "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 downloads." }, { "role": "assistant", "content": "find downloads -type f -printf '%s %p\\n' 2>/dev/null | sort ...
pipeline
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "I need a bash script that changes the owner of each file to deploy for all .js files under /var/www." }, { "role": "assistant", "content": "#!/usr/bin...
script
chown
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Give me a script that iterates over /home/deploy/*.csv and compresses each file with gzip." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipe...
script
gzip
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "On the file request.old, show a hex dump of the first 64 bytes." }, { "role": "assistant", "content": "xxd -l 64 request.old" } ]
single
xxd
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Recursively set owner and group of artifacts to git:operators." }, { "role": "assistant", "content": "sudo chown -R git:operators artifacts" } ]
single
chown
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Find files in lib owned by dave." }, { "role": "assistant", "content": "find lib -type f -user dave" } ]
single
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Count how many times each line appears in profile.ini, most frequent first." }, { "role": "assistant", "content": "sort profile.ini | uniq -c | sort -...
pipeline
sort
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Poll disk usage every 10 seconds; warn a single time when it first exceeds 70%." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo p...
script
while
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "extract all the 'name' fields from https://web01.local/api/users" }, { "role": "assistant", "content": "curl -s https://web01.local/api/users | ...
pipeline
curl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Copy payment.png to db01.local's /tmp directory as svc-app." }, { "role": "assistant", "content": "scp payment.png svc-app@db01.local:/tmp/" } ]
single
scp
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a deployment script: pull the main branch, install deps, run tests, and restart the service only if tests pass." }, { "role": "assistant", "cont...
script
git
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "I need a script that accepts --level (-l), --port (-p) and --input (-i) via getopts, with a usage message." }, { "role": "assistant", "content": "#!/u...
script
getopts
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Decompress worker.log.gz." }, { "role": "assistant", "content": "gunzip worker.log.gz" } ]
single
gzip
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Copy summary.css into the tmp directory." }, { "role": "assistant", "content": "cp summary.css tmp/" } ]
single
cp
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Download https://git.example.com/file.zip and save it with its remote name." }, { "role": "assistant", "content": "curl -O https://git.example.com/file.zip" } ]
single
curl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "download https://cache.service.io/list.txt and count the lines" }, { "role": "assistant", "content": "curl -s https://cache.service.io/list.txt ...
pipeline
curl
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Write a health check that reports UP/DOWN for the cron process via its exit code." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset...
script
if
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Test if error.old is present and has content; report missing, empty, or its line count." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefai...
script
if
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "I need a retry wrapper around git fetch from origin: 5 attempts, 1s apart." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo ...
script
git
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "delete all digits from session.yaml" }, { "role": "assistant", "content": "tr -d '0-9' < session.yaml" } ]
single
tr
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Check if order.csv exists and cat it, otherwise say it's missing." }, { "role": "assistant", "content": "[ -f order.csv ] && cat order.csv || echo 'not found'" } ...
pipeline
chain
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show me the disk usage of /var/lib/mysql broken down one level deep." }, { "role": "assistant", "content": "du -h --max-depth=1 /var/lib/mysql 2>...
pipeline
du
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "locate files under /var/log modified in the last 5 days" }, { "role": "assistant", "content": "find /var/log -type f -mtime -5" } ]
single
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "replace tabs with commas in archive.ini and write to archive.ini.csv" }, { "role": "assistant", "content": "sed 's/\\t/,/g' archive.ini > archive.ini.csv" } ]
pipeline
sed
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Recursively set owner and group of config to ubuntu:users." }, { "role": "assistant", "content": "sudo chown -R ubuntu:users config" } ]
single
chown
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "I need a rotating backup: archive /home/deploy into /mnt/backup with bzip2, retain 14 copies." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo p...
script
tar
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "search all .xml files under media for the word TODO" }, { "role": "assistant", "content": "find media -name '*.xml' -print0 | xargs -0 grep -l TO...
pipeline
find
[ { "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://auth.local/api/items" }, { "role": "assistant", "content": "curl -s https://auth.local/api/...
pipeline
curl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Process all .sh files under /mnt/storage with gzip using 8 parallel workers via xargs." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset...
script
xargs
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Retry connection to mail.service.io:5432 at most 4 times with a 5-second backoff, failing loudly if it never succeeds." }, { "role": "assistant", "con...
script
bash
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "List the 10 biggest files under /etc/nginx." }, { "role": "assistant", "content": "find /etc/nginx -type f -printf '%s %p\\n' 2>/dev/null | sort -rn | head -n 10" ...
pipeline
find
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Find the running nginx processes (excluding the grep itself)." }, { "role": "assistant", "content": "ps aux | grep [n]ginx" } ]
pipeline
ps
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "I need a script that renames every .htm file in the current directory to .jpg." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -e...
script
for
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "replace tabs with commas in sales.txt and write to sales.txt.csv" }, { "role": "assistant", "content": "sed 's/\\t/,/g' sales.txt > sales.txt.csv...
pipeline
sed
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Find the 15 hottest values in column 9 of worker.log (by frequency)." }, { "role": "assistant", "content": "awk '{print $9}' worker.log | sort | ...
pipeline
awk
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show me how to list the unique 'denied' messages in mail.log." }, { "role": "assistant", "content": "grep 'denied' mail.log | sort -u" } ]
pipeline
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Write a countdown script from 30 to 1 that prints each number one second apart." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ni=30\...
script
while
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Write a health check that reports UP/DOWN for the sshd process via its exit code." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\npro...
script
if
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Extract just the email addresses from index.tsv." }, { "role": "assistant", "content": "grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' index.tsv | sort -u" } ]
pipeline
sed
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "From debug.md, count the lines." }, { "role": "assistant", "content": "cat debug.md | wc -l" } ]
pipeline
wc
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write me a script that loops over every .png file in /var/www and changes the owner of each file to deploy." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=/var...
script
chown
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Create the migrations directory if needed and then cd into it." }, { "role": "assistant", "content": "mkdir -p migrations && cd migrations" } ]
pipeline
chain
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "search all .conf files under tmp for the word TODO" }, { "role": "assistant", "content": "find tmp -name '*.conf' -print0 | xargs -0 grep -l TOD...
pipeline
find
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "extract backup.tar.gz into the fixtures folder" }, { "role": "assistant", "content": "tar -xzf backup.tar.gz -C fixtures" } ]
single
tar
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show the 10 largest subdirectories in tests." }, { "role": "assistant", "content": "du -h tests/* | sort -rh | head -n 10" } ]
pipeline
du
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Copy debug.json into the include directory." }, { "role": "assistant", "content": "cp debug.json include/" } ]
single
cp