messages
listlengths
3
3
category
stringclasses
3 values
utility
stringclasses
89 values
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Help me count how many vim processes are running." }, { "role": "assistant", "content": "pgrep -c vim" } ]
pipeline
pgrep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Process all .tmp files under backups with gzip using 2 parallel workers via xargs." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndi...
script
xargs
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Delete the first line of invoice.yaml in place." }, { "role": "assistant", "content": "sed -i '1d' invoice.yaml" } ]
single
sed
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Report virtual-memory statistics every 2 seconds, 3 times." }, { "role": "assistant", "content": "vmstat 2 3" } ]
single
vmstat
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "List the 10 biggest files under uploads." }, { "role": "assistant", "content": "find uploads -type f -printf '%s %p\\n' 2>/dev/null | sort -rn | head ...
pipeline
find
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "which directories under migrations are eating the most space?" }, { "role": "assistant", "content": "du -h --max-depth=1 migrations | sort -rh" ...
pipeline
du
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "How do I list files in tests sorted by size?" }, { "role": "assistant", "content": "ls -lS tests" } ]
single
ls
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Ping staging.corp.net once and branch: print reachable or unreachable based on the result." }, { "role": "assistant", "content": "#!/usr/bin/env...
script
if
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show lines in api.log that do NOT contain 'SIGTERM'." }, { "role": "assistant", "content": "grep -v 'SIGTERM' api.log" } ]
single
grep
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "For every immediate subdirectory of /srv/data, show how much disk it uses." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefa...
script
for
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write a shell script that runs optipng on every .csv file in /opt/app, 8 jobs in parallel." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=/opt/app\nfind \"$dir...
script
xargs
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Count how often each column-5 value appears in server.log; show the 20 most common." }, { "role": "assistant", "content": "cut -d, -f5 server.log | sort | uniq -c | sort -nr | head -n 20" } ]
pipeline
cut
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "remove fd-find and unneeded dependencies" }, { "role": "assistant", "content": "sudo pacman -Rs fd-find" } ]
single
pacman
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "extract all the 'name' fields from https://github.io/api/users" }, { "role": "assistant", "content": "curl -s https://github.io/api/users | jq -r '.[].name'" } ]
pipeline
curl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "strip leading whitespace from every line of payment.json and save to clean.txt" }, { "role": "assistant", "content": "sed 's/^[[:space:]]*//' pa...
pipeline
sed
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write a Bash script that parses -f (file), -n (count) and -v (verbose) options with getopts." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nverbose=0\nfile=\"\"\nc...
script
getopts
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Write an if that checks connectivity to auth.local with a single ping." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nhost=auth.loca...
script
if
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "For transaction.log, determine what kind of file it is." }, { "role": "assistant", "content": "file transaction.log" } ]
single
file
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a deployment script: pull the hotfix/security branch, install deps, run tests, and restart the service only if tests pass." }, { "role": "assistant"...
script
git
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Count how many elasticsearch processes are running." }, { "role": "assistant", "content": "pgrep -c elasticsearch" } ]
pipeline
pgrep
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "What are the 5 biggest files under static?" }, { "role": "assistant", "content": "find static -type f -printf '%s %p\\n' 2>/dev/null | sort -rn | head...
pipeline
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "change permissions to 644 on all files under images" }, { "role": "assistant", "content": "find images -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": "Take test.txt and count the lines." }, { "role": "assistant", "content": "cat test.txt | wc -l" } ]
pipeline
wc
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "extract all the 'name' fields from https://db02.local/api/users" }, { "role": "assistant", "content": "curl -s https://db02.local/api/users | jq...
pipeline
curl
[ { "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 4 in debug.log and show the 5 biggest." }, { "role": "assistant", "content": "cut -d, -f4 debug.log | sort | ...
pipeline
cut
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Search the kernel log for 'i/o' messages." }, { "role": "assistant", "content": "dmesg -T | grep -i i/o" } ]
single
dmesg
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Sort session.log numerically in reverse order." }, { "role": "assistant", "content": "sort -nr session.log" } ]
single
sort
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a small script that runs checksum with sha256sum on every .csv file in /data/uploads, 4 jobs in parallel." }, { "role": "assistant", "content": ...
script
xargs
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "replace tabs with commas in transaction.csv and write to transaction.csv.csv" }, { "role": "assistant", "content": "sed 's/\\t/,/g' transaction.csv > ...
pipeline
sed
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "connect to 172.16.0.20 on port 5672 as bob" }, { "role": "assistant", "content": "ssh -p 5672 bob@172.16.0.20" } ]
single
ssh
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Read results.md, then sort it and drop duplicate lines — as a pipeline." }, { "role": "assistant", "content": "cat results.md | sort -u" } ]
pipeline
sort
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "list only the .conf files in /etc/apache2" }, { "role": "assistant", "content": "ls /etc/apache2 | grep '\\.conf$'" } ]
pipeline
ls
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "strip leading whitespace from every line of order.txt and save to clean.txt" }, { "role": "assistant", "content": "sed 's/^[[:space:]]*//' order.txt > clean.txt" } ]
pipeline
sed
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Count total lines across all .py files in lib." }, { "role": "assistant", "content": "find lib -type f -name '*.py' -print0 | xargs -0 cat | wc -l" } ]
pipeline
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Parse customers.tsv as comma-separated id,name,email using while read and print each name." }, { "role": "assistant", "content": "#!/usr/bin/env bash\...
script
while
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "I need a rotating backup: archive /home/deploy into /backup with xz, retain 10 copies." }, { "role": "assistant", "content": "#!/usr/bin/env bash...
script
tar
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "get the number of items in the JSON array at https://db01.service.io/api/items" }, { "role": "assistant", "content": "curl -s https://db01.service.io/api/items | jq...
pipeline
curl
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Back up /opt/app to /backup as a dated gzip archive, pruning all but the last 30 backups." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipef...
script
tar
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Find all .md files under media and delete them. (Careful: destructive.)" }, { "role": "assistant", "content": "find media -type f -name '*.md' -p...
pipeline
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "change just the group of audit.md to sudo" }, { "role": "assistant", "content": "sudo chgrp sudo audit.md" } ]
single
chown
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a deployment script: pull the staging branch, install deps, run tests, and restart the service only if tests pass." }, { "role": "assistant", "c...
script
git
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Parse command-line flags -l (level), -o (output) and -p (port) using getopts and validate that -l is provided." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nlevel...
script
getopts
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Parse command-line flags -p (port), -i (input) and -n (name) using getopts and validate that -p is provided." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nport=\"...
script
getopts
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Find directories named static anywhere under include." }, { "role": "assistant", "content": "find include -type d -name 'static'" } ]
single
find
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "I need a script that runs optipng on every .json file in /home/alice, 2 jobs in parallel." }, { "role": "assistant", "content": "#!/usr/bin/env b...
script
xargs
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Background 'gzip huge.log' at nice level 15." }, { "role": "assistant", "content": "nice -n 15 gzip huge.log &" } ]
single
nice
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "give the owner rwx and everyone else read on summary.log" }, { "role": "assistant", "content": "chmod 744 summary.log" } ]
single
chmod
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Rename data.txt to data.txt.old without overwriting if the target already exists." }, { "role": "assistant", "content": "mv -n data.txt data.txt....
single
mv
[ { "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://staging.local/api/items" }, { "role": "assistant", "content": "curl -s https://staging.loca...
pipeline
curl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "give the owner rwx and everyone else read on order.bak" }, { "role": "assistant", "content": "chmod 744 order.bak" } ]
single
chmod
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Find directories named include anywhere under migrations." }, { "role": "assistant", "content": "find migrations -type d -name 'include'" } ]
single
find
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Fetch JSON from https://monitor.service.io/api/users and pretty-print it with jq." }, { "role": "assistant", "content": "curl -s https://monitor....
pipeline
curl
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "recursively search src for 'panic' and show line numbers" }, { "role": "assistant", "content": "grep -rn 'panic' src" } ]
single
grep
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "send a GET request to https://auth.service.io/api and show the response headers" }, { "role": "assistant", "content": "curl -I https://auth.serv...
single
curl
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Change the owner of access.xml to git." }, { "role": "assistant", "content": "sudo chown git access.xml" } ]
single
chown
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Run 'make -j4' at higher priority (nice -10); needs root." }, { "role": "assistant", "content": "sudo nice -n -10 make -j4" } ]
single
nice
[ { "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 bin" }, { "role": "assistant", "content": "find bin -type f -print0 | xargs -0 chmod 644" } ]
pipeline
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Can you write a script that accepts --name (-n), --tag (-t) and --dir (-d) via getopts, with a usage message?" }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nname=\...
script
getopts
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "enable fail2ban to start on boot" }, { "role": "assistant", "content": "sudo systemctl enable fail2ban" } ]
single
systemctl
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "I need to list the unique 'denied' messages in gc.log." }, { "role": "assistant", "content": "grep 'denied' gc.log | sort -u" } ]
pipeline
grep
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Find the PIDs of all tmux processes." }, { "role": "assistant", "content": "pgrep tmux" } ]
single
pgrep
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Show me how to follow the haproxy journal but only show lines mentioning '502'." }, { "role": "assistant", "content": "journalctl -u haproxy -f ...
pipeline
journalctl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Count total lines across all .bak files in /var/log." }, { "role": "assistant", "content": "find /var/log -type f -name '*.bak' -print0 | xargs ...
pipeline
find
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "remove tree and unneeded dependencies" }, { "role": "assistant", "content": "sudo pacman -Rs tree" } ]
single
pacman
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Clean up cache: remove .cache files not modified in 10 days, recording each deletion." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ntarget=cache\nage=10\n[ -d \"$...
script
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "strip leading whitespace from every line of payload.ini and save to clean.txt" }, { "role": "assistant", "content": "sed 's/^[[:space:]]*//' payload.i...
pipeline
sed
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Edit metrics.json in place, replacing 'info' with 'false'." }, { "role": "assistant", "content": "sed -i 's/info/false/g' metrics.json" } ]
single
sed
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Extract just the email addresses from inventory.conf." }, { "role": "assistant", "content": "grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' inventor...
pipeline
sed
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "POST a JSON body to https://auth.corp.net/api/users" }, { "role": "assistant", "content": "curl -X POST -H 'Content-Type: application/json' -d '{\"nam...
single
curl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Give me a frequency tally of column 2 in customers.csv and show the 10 biggest." }, { "role": "assistant", "content": "cut -d, -f2 customers.csv | sor...
pipeline
cut
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Print the 1nd column of access.log (whitespace separated)." }, { "role": "assistant", "content": "awk '{print $1}' access.log" } ]
single
awk
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Write a script that dumps every MySQL database into its own gzip file under /data/backup, keeping 5 days." }, { "role": "assistant", "content": "...
script
mysqldump
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Count how many files are in /var/www." }, { "role": "assistant", "content": "ls -1 /var/www | wc -l" } ]
pipeline
ls
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Find the running vim processes (excluding the grep itself)." }, { "role": "assistant", "content": "ps aux | grep [v]im" } ]
pipeline
ps
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Count total lines across all .css files in include." }, { "role": "assistant", "content": "find include -type f -name '*.css' -print0 | xargs -0 cat | wc -l" } ]
pipeline
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "replace tabs with commas in profile.log and write to profile.log.csv" }, { "role": "assistant", "content": "sed 's/\\t/,/g' profile.log > profile.log....
pipeline
sed
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Loop through the .txt files in /data/uploads and makes a .bak copy of each file — write it as a proper script." }, { "role": "assistant", "conten...
script
cp
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Print the 2nd column of inventory.csv (whitespace separated)." }, { "role": "assistant", "content": "awk '{print $2}' inventory.csv" } ]
single
awk
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write me a script that dumps every MySQL database into its own gzip file under /data/backup, keeping 30 days." }, { "role": "assistant", "content": "#...
script
mysqldump
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "What are the 5 biggest files under config?" }, { "role": "assistant", "content": "find config -type f -printf '%s %p\\n' 2>/dev/null | sort -rn |...
pipeline
find
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Find all .log files under /home/alice and delete them. (Careful: destructive.)" }, { "role": "assistant", "content": "find /home/alice -type f -...
pipeline
find
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Archive project and pipe it over ssh to back it up on a remote host." }, { "role": "assistant", "content": "tar -czf - project | ssh operator@mai...
pipeline
tar
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "In report.tsv, which 5 values of column 2 occur most often?" }, { "role": "assistant", "content": "awk '{print $2}' report.tsv | sort | uniq -c | sort...
pipeline
awk
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "I need a preflight check that PORT, AWS_REGION and DB_PASS exist in the environment." }, { "role": "assistant", "content": "#!/usr/bin/env bash\n...
script
env
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "extract backup.tar.gz into the lib folder" }, { "role": "assistant", "content": "tar -xzf backup.tar.gz -C lib" } ]
single
tar
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Fail fast if any of DB_PASS, PORT, AWS_REGION is unset — write it as a bash guard." }, { "role": "assistant", "content": "#!/usr/bin/env bash\ns...
script
env
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show me how to count 'SIGTERM' occurrences in the sshd journal today." }, { "role": "assistant", "content": "journalctl -u sshd --since today --no-pager | grep -c '...
pipeline
journalctl
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Can you write a script that verifies it is run with at least one argument, else prints usage?" }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nif [ \"$#\" -lt 1 ]; t...
script
if
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Find the biggest files under /etc/apache2." }, { "role": "assistant", "content": "du -ah /etc/apache2 | sort -rh | head -n 20" } ]
pipeline
du
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Find the 10 most common 'timeout'-related lines in syslog.log." }, { "role": "assistant", "content": "grep 'timeout' syslog.log | sort | uniq -c | sort -nr | head -n 10" } ]
pipeline
grep
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "move all .xml files into the static directory" }, { "role": "assistant", "content": "mv *.xml static/" } ]
single
mv
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "replace tabs with commas in metrics.csv and write to metrics.csv.csv" }, { "role": "assistant", "content": "sed 's/\\t/,/g' metrics.csv > metrics.csv....
pipeline
sed
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "I need a preflight check that AWS_REGION, DB_HOST and REDIS_URL exist in the environment." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipef...
script
env
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write me a script that runs optipng on every .py file in /opt/app, 2 jobs in parallel." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset...
script
xargs
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Create and switch to a new branch called feature/login." }, { "role": "assistant", "content": "git checkout -b feature/login" } ]
single
git
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Show a recursive listing of /opt/app." }, { "role": "assistant", "content": "ls -R /opt/app" } ]
single
ls
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Move notes.pdf into the dist folder." }, { "role": "assistant", "content": "mv notes.pdf dist/" } ]
single
mv
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "replace tabs with commas in summary.ini and write to summary.ini.csv" }, { "role": "assistant", "content": "sed 's/\\t/,/g' summary.ini > summary...
pipeline
sed
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Find files in /opt/app owned by bob." }, { "role": "assistant", "content": "find /opt/app -type f -user bob" } ]
single
find
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "List the 20 largest subdirectories of build." }, { "role": "assistant", "content": "du -h build/* 2>/dev/null | sort -rh | head -n 20" } ]
pipeline
du