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": "count the bytes in release.txt" }, { "role": "assistant", "content": "wc -c release.txt" } ]
single
wc
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "How do I show the top 15 processes by CPU usage?" }, { "role": "assistant", "content": "ps aux --sort=-%cpu | head -n 16" } ]
pipeline
ps
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Given output.txt, convert everything to uppercase." }, { "role": "assistant", "content": "cat output.txt | tr 'a-z' 'A-Z'" } ]
pipeline
tr
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "I need a bash script that makes a .bak copy of each file for all .csv files under /var/www." }, { "role": "assistant", "content": "#!/usr/bin/env bash...
script
cp
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "On the file build.py, determine what kind of file it is." }, { "role": "assistant", "content": "file build.py" } ]
single
file
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Take inventory.log and show the last 15 lines." }, { "role": "assistant", "content": "cat inventory.log | tail -n 15" } ]
pipeline
tail
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a Bash script that verifies it is run with at least one argument, else prints usage." }, { "role": "assistant", "content": "#!/usr/bin/env bash\...
script
if
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Rename metrics.tar.gz to metrics.tar.gz.old without overwriting if the target already exists." }, { "role": "assistant", "content": "mv -n metrics.tar.gz metrics.ta...
single
mv
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write a Bash script that verifies the environment variables API_KEY, AWS_REGION and PORT are all set before running." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\...
script
env
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Write a start/stop/restart/status control script for systemd-networkd using a case statement." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo p...
script
case
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Pull the latest changes for the develop branch." }, { "role": "assistant", "content": "git pull origin develop" } ]
single
git
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Read audit.ini, then count each unique line, most common first — as a pipeline." }, { "role": "assistant", "content": "cat audit.ini | 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": "Change the owner of server.pdf to mysql." }, { "role": "assistant", "content": "sudo chown mysql server.pdf" } ]
single
chown
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Loop through the .zip files in /home/deploy and prints the line count of each file — write it as a proper script." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndi...
script
wc
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Write a backup script that bzip2-compresses /opt/app into a timestamped tarball under /mnt/backup and keeps only the 30 newest." }, { "role": "assistant", "content"...
script
tar
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "From config.json, show the last 15 lines." }, { "role": "assistant", "content": "cat config.json | tail -n 15" } ]
pipeline
tail
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "show grafana-server logs from the last 3 days" }, { "role": "assistant", "content": "journalctl -u grafana-server --since '3 days ago'" } ]
single
journalctl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "From users.json, keep only non-empty lines." }, { "role": "assistant", "content": "cat users.json | grep -v '^$'" } ]
pipeline
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show me the 10 largest subdirectories of /var/www." }, { "role": "assistant", "content": "du -h /var/www/* 2>/dev/null | sort -rh | head -n 10" } ]
pipeline
du
[ { "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 logs into a timestamped tarball under /mnt/backup and keeps only the 14 newest." }, { "role": "assistant",...
script
tar
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "I need getopts handling for three options: -p, -l and -i; print usage on bad input." }, { "role": "assistant", "content": "#!/usr/bin/env bash\ns...
script
getopts
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "How big is logs overall?" }, { "role": "assistant", "content": "du -sh logs" } ]
single
du
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Copy session.html into images only if it's newer than what's there." }, { "role": "assistant", "content": "cp -u session.html images/" } ]
single
cp
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Back up all PostgreSQL databases individually to /mnt/backup as compressed dumps." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo...
script
pg_dump
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write me a script that deletes files older than 90 days from logs, logging each removal." }, { "role": "assistant", "content": "#!/usr/bin/env bash\ns...
script
find
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Fetch JSON from https://auth.example.org/api/users and pretty-print it with jq." }, { "role": "assistant", "content": "curl -s https://auth.example.org/api/users | ...
pipeline
curl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "I need a script that verifies the environment variables ENV, REDIS_URL and PORT are all set before running." }, { "role": "assistant", "content": "#!/...
script
env
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Change the owner of session.zip to www-data." }, { "role": "assistant", "content": "sudo chown www-data session.zip" } ]
single
chown
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Write a script that reads a yes/no answer and handles Y/y/yes and N/n/no with a case statement." }, { "role": "assistant", "content": "#!/usr/bi...
script
case
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Show vmstat in megabytes, 5s interval, 3 samples." }, { "role": "assistant", "content": "vmstat -S M 5 3" } ]
single
vmstat
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Make 5 day-stamped folders under /srv/backup using a for loop over a date range." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo ...
script
for
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Write a script that loops over every .old file in /var/lib/app and removes each matching file." }, { "role": "assistant", "content": "#!/usr/bin...
script
rm
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "send a GET request to https://8.8.8.8/api and show the response headers" }, { "role": "assistant", "content": "curl -I https://8.8.8.8/api" } ]
single
curl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "I need to list the unique 'permission denied' messages in nginx-access.log." }, { "role": "assistant", "content": "grep 'permission denied' nginx-acce...
pipeline
grep
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Read audit.yaml, then count the lines — as a pipeline." }, { "role": "assistant", "content": "cat audit.yaml | wc -l" } ]
pipeline
wc
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Make summary.old executable." }, { "role": "assistant", "content": "chmod +x summary.old" } ]
single
chmod
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Mount /dev/sdb1 at /mnt/data." }, { "role": "assistant", "content": "sudo mount /dev/sdb1 /mnt/data" } ]
single
mount
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Back up /var/lib/app to /data/backup as a dated bzip2 archive, pruning all but the last 30 backups." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nsrc=/var/lib/app...
script
tar
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "change just the group of session.md to developers" }, { "role": "assistant", "content": "sudo chgrp developers session.md" } ]
single
chown
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "On this box, find the 20 processes with the most open files." }, { "role": "assistant", "content": "lsof 2>/dev/null | awk '{print $1}' | sort | uniq -c | sort -nr | head -n 20" } ]
pipeline
lsof
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Write a backup script that bzip2-compresses data into a timestamped tarball under /var/backups and keeps only the 30 newest." }, { "role": "assistan...
script
tar
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "get the number of items in the JSON array at https://cache.internal/api/items" }, { "role": "assistant", "content": "curl -s https://cache.internal/api/items | jq 'length'" } ]
pipeline
curl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Download https://cdn.corp.net/file.zip and save it with its remote name." }, { "role": "assistant", "content": "curl -O https://cdn.corp.net/file.zip"...
single
curl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Copy order.yaml into lib only if it's newer than what's there." }, { "role": "assistant", "content": "cp -u order.yaml lib/" } ]
single
cp
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "replace tabs with commas in users.log and write to users.log.csv" }, { "role": "assistant", "content": "sed 's/\\t/,/g' users.log > users.log.cs...
pipeline
sed
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "delete all digits from output.conf" }, { "role": "assistant", "content": "tr -d '0-9' < output.conf" } ]
single
tr
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Count total lines across all .png files in /home/deploy." }, { "role": "assistant", "content": "find /home/deploy -type f -name '*.png' -print0 | xargs -0 cat | wc -l" } ]
pipeline
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "I need a rotating backup: archive /mnt/storage into /var/backups with xz, retain 5 copies." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nsrc=/mnt/storage\ndest=/v...
script
tar
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Check whether gunicorn is running and exit 0 if so, 1 otherwise, with a message." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset ...
script
if
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "I need to tally how many times each log level appears in cron.log." }, { "role": "assistant", "content": "grep -oE '(INFO|WARN|ERROR|DEBUG)' cron.log | sort | uniq -c | sort -nr" } ]
pipeline
grep
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "I need to follow the haproxy journal but only show lines mentioning 'exception'." }, { "role": "assistant", "content": "journalctl -u haproxy -f | grep --line-buffered -i 'exception'" } ]
pipeline
journalctl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a loop that restarts these services in order: systemd-networkd rabbitmq mongod." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset ...
script
for
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "send SIGHUP to process 2371 to make it reload its config" }, { "role": "assistant", "content": "kill -HUP 2371" } ]
single
kill
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "List the PIDs of postgres sorted by memory use." }, { "role": "assistant", "content": "ps -C postgres -o pid=,rss= --sort=-rss" } ]
pipeline
ps
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Recursively set owner and group of project to backup:docker." }, { "role": "assistant", "content": "sudo chown -R backup:docker project" } ]
single
chown
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Print the number of fields on each line of data.csv." }, { "role": "assistant", "content": "awk '{print NF}' data.csv" } ]
single
awk
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "show haproxy logs from the last 21 days" }, { "role": "assistant", "content": "journalctl -u haproxy --since '21 days ago'" } ]
single
journalctl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Find files in tmp owned by git." }, { "role": "assistant", "content": "find tmp -type f -user git" } ]
single
find
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "gzip every .log file under src" }, { "role": "assistant", "content": "find src -type f -name '*.log' -print0 | xargs -0 gzip" } ]
pipeline
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "From export.tsv, list the 5 most frequent field-3 entries with their counts." }, { "role": "assistant", "content": "awk '{print $3}' export.tsv | sort | uniq -c | sort -nr | head -n 5" } ]
pipeline
awk
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Count how many haproxy processes are running." }, { "role": "assistant", "content": "pgrep -c haproxy" } ]
pipeline
pgrep
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "I need a script that dumps every MySQL database into its own gzip file under /backup, keeping 5 days." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndest=/backup\n...
script
mysqldump
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Total the resident memory of all memcached processes in MB." }, { "role": "assistant", "content": "ps -C memcached -o rss= | awk '{s+=$1} END{print s/...
pipeline
ps
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show the 10 largest subdirectories in dist." }, { "role": "assistant", "content": "du -h dist/* | sort -rh | head -n 10" } ]
pipeline
du
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Show me the 10 largest subdirectories of media." }, { "role": "assistant", "content": "du -h media/* 2>/dev/null | sort -rh | head -n 10" } ]
pipeline
du
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "I need to tally how many times each log level appears in output.log." }, { "role": "assistant", "content": "grep -oE '(INFO|WARN|ERROR|DEBUG)' output....
pipeline
grep
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Can you write a script that runs gzip on every .md file in /mnt/storage, 4 jobs in parallel?" }, { "role": "assistant", "content": "#!/usr/bin/env bas...
script
xargs
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Process all .gif files under backups with optipng using 4 parallel workers via xargs." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=backups\nfind \"$dir\" -ty...
script
xargs
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Download https://github.io/file.zip and save it with its remote name." }, { "role": "assistant", "content": "curl -O https://github.io/file.zip" } ]
single
curl
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Process all .yaml files under logs with checksum with sha256sum using 2 parallel workers via xargs." }, { "role": "assistant", "content": "#!/usr...
script
xargs
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "list only the .cache files in config" }, { "role": "assistant", "content": "ls config | grep '\\.cache$'" } ]
pipeline
ls
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "I need getopts handling for three options: -l, -c and -t; print usage on bad input." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -e...
script
getopts
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Write a backup script that bzip2-compresses /opt/app into a timestamped tarball under /data/backup and keeps only the 14 newest." }, { "role": "assistant", "content...
script
tar
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Edit results.csv in place, replacing 'production' with 'POST'." }, { "role": "assistant", "content": "sed -i 's/production/POST/g' results.csv" } ]
single
sed
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "List the 20 biggest files under /opt/app." }, { "role": "assistant", "content": "find /opt/app -type f -printf '%s %p\\n' 2>/dev/null | sort -rn | head -n 20" } ]
pipeline
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Test if transaction.bak is present and has content; report missing, empty, or its line count." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nfile=transaction.bak\n...
script
if
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Delete the first line of product.md in place." }, { "role": "assistant", "content": "sed -i '1d' product.md" } ]
single
sed
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Loop over every .jpg file in /var/www and append its sha256 checksum to checksums.txt." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nshopt -s nullglob\nfor f in /...
script
for
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Copy archive.tar.gz into releases only if it's newer than what's there." }, { "role": "assistant", "content": "cp -u archive.tar.gz releases/" } ]
single
cp
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Show the 10 largest subdirectories in /etc/nginx." }, { "role": "assistant", "content": "du -h /etc/nginx/* | sort -rh | head -n 10" } ]
pipeline
du
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show me how to follow the mongod journal but only show lines mentioning 'null'." }, { "role": "assistant", "content": "journalctl -u mongod -f | grep --line-buffere...
pipeline
journalctl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Given sales.csv, convert everything to uppercase." }, { "role": "assistant", "content": "cat sales.csv | tr 'a-z' 'A-Z'" } ]
pipeline
tr
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Show the 10 largest subdirectories in /mnt/data." }, { "role": "assistant", "content": "du -h /mnt/data/* | sort -rh | head -n 10" } ]
pipeline
du
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "list only the .yaml files in /var/cache" }, { "role": "assistant", "content": "ls /var/cache | grep '\\.yaml$'" } ]
pipeline
ls
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Run the backup script, sending stdout and stderr to metrics.log." }, { "role": "assistant", "content": "./backup.sh > metrics.log 2>&1" } ]
pipeline
redirection
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "How do I list files in uploads sorted by size?" }, { "role": "assistant", "content": "ls -lS uploads" } ]
single
ls
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Given output.conf, count the lines." }, { "role": "assistant", "content": "cat output.conf | wc -l" } ]
pipeline
wc
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Take auth.csv and count each unique line, most common first." }, { "role": "assistant", "content": "cat auth.csv | sort | uniq -c | sort -nr" }...
pipeline
uniq
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Please show the first 20 lines in session.zip." }, { "role": "assistant", "content": "head -n 20 session.zip" } ]
single
head
[ { "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.service.io/api/users" }, { "role": "assistant", "content": "curl -s https://web01.service.io/ap...
pipeline
curl
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Find the process listening on port 25565." }, { "role": "assistant", "content": "lsof -i :25565" } ]
single
lsof
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Replace every occurrence of 'active' with 'debug' in error.json and print the result." }, { "role": "assistant", "content": "sed 's/active/debug/g' er...
single
sed
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Create the build directory if needed and then cd into it." }, { "role": "assistant", "content": "mkdir -p build && cd build" } ]
pipeline
chain
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Given order.log, keep only non-empty lines." }, { "role": "assistant", "content": "cat order.log | grep -v '^$'" } ]
pipeline
grep
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Copy dump.conf into uploads only if it's newer than what's there." }, { "role": "assistant", "content": "cp -u dump.conf uploads/" } ]
single
cp
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "show redis logs from the last 90 days" }, { "role": "assistant", "content": "journalctl -u redis --since '90 days ago'" } ]
single
journalctl
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "List the 5 largest subdirectories of artifacts." }, { "role": "assistant", "content": "du -h artifacts/* 2>/dev/null | sort -rh | head -n 5" } ...
pipeline
du
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "download https://www.example.com/list.txt and count the lines" }, { "role": "assistant", "content": "curl -s https://www.example.com/list.txt | ...
pipeline
curl
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "How do I list files in fixtures sorted by size?" }, { "role": "assistant", "content": "ls -lS fixtures" } ]
single
ls
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write a script that accepts --port (-p), --input (-i) and --name (-n) via getopts, with a usage message." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nport=\"\"; ...
script
getopts