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 total lines across all .txt files in /mnt/data." }, { "role": "assistant", "content": "find /mnt/data -type f -name '*.txt' -print0 | xargs -0 cat | wc -l" ...
pipeline
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Create a script that deletes .tmp files older than 180 days from /var/cache and logs what it removed." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ntarget=/var/ca...
script
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Find all .css files under include." }, { "role": "assistant", "content": "find include -type f -name '*.css'" } ]
single
find
[ { "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 /home/deploy/*.log and makes each file read-only." }, { "role": "assistant", "content": "#!/usr/bin/env bash\...
script
chmod
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "What are the 25 most common entries in column 2 of metrics.log?" }, { "role": "assistant", "content": "cut -d, -f2 metrics.log | sort | uniq -c ...
pipeline
cut
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Extract just the email addresses from profile.tsv." }, { "role": "assistant", "content": "grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' profile.ts...
pipeline
sed
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Give me a script that iterates over /home/alice/*.gz and makes a .bak copy of each file." }, { "role": "assistant", "content": "#!/usr/bin/env b...
script
cp
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Write a shell script that verifies the environment variables REDIS_URL, PORT and DB_PASS are all set before running." }, { "role": "assistant", ...
script
env
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Process all .sh files under /data/uploads with gzip using 4 parallel workers via xargs." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=/data/uploads\nfind \"$d...
script
xargs
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Find all .html files under images." }, { "role": "assistant", "content": "find images -type f -name '*.html'" } ]
single
find
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Create a script that uses a lock file so only one instance can run at a time, releasing it on exit." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset ...
script
trap
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Count total lines across all .pdf files in /var/log." }, { "role": "assistant", "content": "find /var/log -type f -name '*.pdf' -print0 | xargs -0 cat | wc -l" } ...
pipeline
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Create a script that checks whether gunicorn is running and starts it if not." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nproc=gunicorn\nif pgrep -x \"$proc\" >...
script
if
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "move all .pdf files into the downloads directory" }, { "role": "assistant", "content": "mv *.pdf downloads/" } ]
single
mv
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Make a directory scripts with permissions 700." }, { "role": "assistant", "content": "mkdir -m 700 scripts" } ]
single
mkdir
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "I need a bash script that makes each file read-only for all .csv files under /mnt/storage." }, { "role": "assistant", "content": "#!/usr/bin/env ...
script
chmod
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Make results.tmp executable." }, { "role": "assistant", "content": "chmod +x results.tmp" } ]
single
chmod
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Run 'tar -czf backup.tar.gz /home/deploy' niced to 19 in the background." }, { "role": "assistant", "content": "nice -n 19 tar -czf backup.tar.gz /hom...
single
nice
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Find directories named logs anywhere under data." }, { "role": "assistant", "content": "find data -type d -name 'logs'" } ]
single
find
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Check if server.jpg exists and cat it, otherwise say it's missing." }, { "role": "assistant", "content": "[ -f server.jpg ] && cat server.jpg ||...
pipeline
chain
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Replace every occurrence of 'GET' with 'kernel' in payload.md and print the result." }, { "role": "assistant", "content": "sed 's/GET/kernel/g' ...
single
sed
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Restart the nginx service." }, { "role": "assistant", "content": "sudo systemctl restart nginx" } ]
single
systemctl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show every open file under include." }, { "role": "assistant", "content": "lsof +D include" } ]
single
lsof
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Parse command-line flags -p (port), -t (tag) and -o (output) 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 are a Bash expert." }, { "role": "user", "content": "Copy event.gz to media/ but keep the original timestamps and permissions." }, { "role": "assistant", "content": "cp -p event.gz media/" } ]
single
cp
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Extract just the email addresses from summary.md." }, { "role": "assistant", "content": "grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' summary.md ...
pipeline
sed
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Install nmap using dnf." }, { "role": "assistant", "content": "sudo dnf install -y nmap" } ]
single
dnf
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Back up all PostgreSQL databases individually to /data/backup as compressed dumps." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nde...
script
pg_dump
[ { "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 /home/alice/*.csv and makes each file read-only." }, { "role": "assistant", "content": "#!/usr/bin/env bash\n...
script
chmod
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "How many lines in api.log mention 'critical'?" }, { "role": "assistant", "content": "grep -c 'critical' api.log | cat" } ]
pipeline
grep
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "What are the 5 biggest files under downloads?" }, { "role": "assistant", "content": "find downloads -type f -printf '%s %p\\n' 2>/dev/null | sort -rn | head -n 5" } ]
pipeline
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write a shell script that dumps every PostgreSQL database into its own gzip file under /mnt/backup, keeping 3 days." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\n...
script
pg_dump
[ { "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 logs/*.txt and compresses each file with gzip." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nse...
script
gzip
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Write a shell script that retries a git fetch from origin up to 4 times, sleeping 1s between attempts." }, { "role": "assistant", "content": "#!/...
script
git
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show me how to tally how many times each log level appears in ingest.log." }, { "role": "assistant", "content": "grep -oE '(INFO|WARN|ERROR|DEBUG...
pipeline
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "replace tabs with commas in summary.csv and write to summary.csv.csv" }, { "role": "assistant", "content": "sed 's/\\t/,/g' summary.csv > summary.csv.csv" } ]
pipeline
sed
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Write a watchdog loop that checks every 10s and only alerts once when disk passes 90%." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail...
script
while
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Sync the fixtures directory to downloads preserving attributes." }, { "role": "assistant", "content": "rsync -av fixtures/ downloads/" } ]
single
rsync
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Clean up /var/tmp: remove .log files not modified in 14 days, recording each deletion." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset...
script
find
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "On the file notes.css, count the lines." }, { "role": "assistant", "content": "wc -l notes.css" } ]
single
wc
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Copy order.txt to staging.local's /tmp directory as svc-app." }, { "role": "assistant", "content": "scp order.txt svc-app@staging.local:/tmp/" } ]
single
scp
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Create and switch to a new branch called staging." }, { "role": "assistant", "content": "git checkout -b staging" } ]
single
git
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show me the 5 biggest files under /home/alice." }, { "role": "assistant", "content": "find /home/alice -type f -printf '%s %p\\n' 2>/dev/null | sort -...
pipeline
find
[ { "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: fail2ban docker mysql." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo ...
script
for
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Fail fast if any of AWS_REGION, API_KEY, PORT is unset — write it as a bash guard." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nfor var in AWS_REGION API_KEY POR...
script
env
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "I need to follow the systemd-networkd journal but only show lines mentioning 'deprecated'." }, { "role": "assistant", "content": "journalctl -u system...
pipeline
journalctl
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Sum up the values in column 3 of data.csv." }, { "role": "assistant", "content": "awk '{sum+=$3} END{print sum}' data.csv" } ]
single
awk
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Please show just the first line in access.conf." }, { "role": "assistant", "content": "head -n 1 access.conf" } ]
single
head
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Give me a script that iterates over /srv/data/*.bak and makes each file read-only." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndi...
script
chmod
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Search metrics.log for lines containing '403'." }, { "role": "assistant", "content": "grep '403' metrics.log" } ]
single
grep
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Please show just the first line in manifest.xml." }, { "role": "assistant", "content": "head -n 1 manifest.xml" } ]
single
head
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "From users.tsv, list the 5 most frequent field-1 entries with their counts." }, { "role": "assistant", "content": "cut -d, -f1 users.tsv | sort | uniq...
pipeline
cut
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "strip leading whitespace from every line of index.log and save to clean.txt" }, { "role": "assistant", "content": "sed 's/^[[:space:]]*//' index.log > clean.txt" } ]
pipeline
sed
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Copy test.tar.gz into tmp only if it's newer than what's there." }, { "role": "assistant", "content": "cp -u test.tar.gz tmp/" } ]
single
cp
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "strip leading whitespace from every line of sales.tsv and save to clean.txt" }, { "role": "assistant", "content": "sed 's/^[[:space:]]*//' sales....
pipeline
sed
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Loop through the .zip files in /home/deploy and compresses each file with gzip — write it as a proper script." }, { "role": "assistant", "content": "#!/usr/bin/env ...
script
gzip
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Run the backup script, sending stdout and stderr to mail.log." }, { "role": "assistant", "content": "./backup.sh > mail.log 2>&1" } ]
pipeline
redirection
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "List the unique 'not found' messages in request.log." }, { "role": "assistant", "content": "grep 'not found' request.log | sort -u" } ]
pipeline
grep
[ { "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 'ERROR' in scheduler.log." }, { "role": "assistant", "content": "grep 'ERROR' scheduler.log | tail -...
pipeline
grep
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Please count the lines in archive.jpg." }, { "role": "assistant", "content": "wc -l archive.jpg" } ]
single
wc
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "What are the 15 most common entries in column 1 of customers.csv?" }, { "role": "assistant", "content": "cut -d, -f1 customers.csv | sort | uniq -c | ...
pipeline
cut
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Create a script that verifies the environment variables DB_PASS, API_KEY and REDIS_URL are all set before running." }, { "role": "assistant", "content": "#!/usr/bin...
script
env
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Process all .csv files under /data/uploads with optipng using 4 parallel workers via xargs." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pip...
script
xargs
[ { "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 .tmp files under backups." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\...
script
chmod
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Find empty files in modules." }, { "role": "assistant", "content": "find modules -type f -empty" } ]
single
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Find the biggest files under /usr/local/bin." }, { "role": "assistant", "content": "du -ah /usr/local/bin | sort -rh | head -n 20" } ]
pipeline
du
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Find the biggest files under assets." }, { "role": "assistant", "content": "du -ah assets | sort -rh | head -n 20" } ]
pipeline
du
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Find all .gif files under /etc/nginx and delete them. (Careful: destructive.)" }, { "role": "assistant", "content": "find /etc/nginx -type f -na...
pipeline
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show me how to follow the systemd-networkd journal but only show lines mentioning '500'." }, { "role": "assistant", "content": "journalctl -u systemd-...
pipeline
journalctl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "For dump.sql, print it with line numbers." }, { "role": "assistant", "content": "nl dump.sql" } ]
single
nl
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Lower the priority of process 5402 to nice value 10." }, { "role": "assistant", "content": "renice -n 10 -p 5402" } ]
single
renice
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Tally column 3 of worker.log and print the 25 top values by count." }, { "role": "assistant", "content": "awk '{print $3}' worker.log | sort | un...
pipeline
awk
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "SSH into auth.corp.net as tomcat." }, { "role": "assistant", "content": "ssh tomcat@auth.corp.net" } ]
single
ssh
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Show me how to show the last 50 lines containing 'unauthorized' in syslog.log." }, { "role": "assistant", "content": "grep 'unauthorized' syslog...
pipeline
grep
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Find all .md files under /var/lib/mysql and delete them. (Careful: destructive.)" }, { "role": "assistant", "content": "find /var/lib/mysql -type f -n...
pipeline
find
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Write me a script that deletes .bak files older than 180 days from /var/cache and logs what it removed." }, { "role": "assistant", "content": "#!/usr/bin/env bash\n...
script
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "list only the .html files in /srv/data" }, { "role": "assistant", "content": "ls /srv/data | grep '\\.html$'" } ]
pipeline
ls
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "change just the group of output.js to backup" }, { "role": "assistant", "content": "sudo chgrp backup output.js" } ]
single
chown
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Loop over all subdirectories of /opt/app and print each one's total size." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pi...
script
for
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Help me total the resident memory of all containerd processes in MB." }, { "role": "assistant", "content": "ps -C containerd -o rss= | awk '{s+=...
pipeline
ps
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "extract all the 'name' fields from https://app01.service.io/api/users" }, { "role": "assistant", "content": "curl -s https://app01.service.io/api/user...
pipeline
curl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "what's the size of manifest.jpg in bytes?" }, { "role": "assistant", "content": "stat -c '%s' manifest.jpg" } ]
single
stat
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "From transaction.tsv, show the 20 longest lines." }, { "role": "assistant", "content": "cat transaction.tsv | awk '{ print length, $0 }' | sort -rn | head -20 | cut -d' ' -f2-" } ]
pipeline
awk
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a small script that verifies the environment variables REDIS_URL, DB_PASS and PORT are all set before running." }, { "role": "assistant", "conte...
script
env
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Find the most recently modified file in /data/uploads." }, { "role": "assistant", "content": "ls -t /data/uploads | head -n 1" } ]
pipeline
ls
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Show lines in build.log that do NOT contain 'DEBUG'." }, { "role": "assistant", "content": "grep -v 'DEBUG' build.log" } ]
single
grep
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "What are the 10 most common entries in column 7 of metrics.tsv?" }, { "role": "assistant", "content": "awk '{print $7}' metrics.tsv | sort | uniq...
pipeline
awk
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Copy customer.tmp into modules only if it's newer than what's there." }, { "role": "assistant", "content": "cp -u customer.tmp modules/" } ]
single
cp
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Fail fast if any of REDIS_URL, AWS_REGION, ENV is unset — write it as a bash guard." }, { "role": "assistant", "content": "#!/usr/bin/env bash\ns...
script
env
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Sum up the values in column 2 of metrics.log." }, { "role": "assistant", "content": "awk '{sum+=$2} END{print sum}' metrics.log" } ]
single
awk
[ { "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: -i, -t and -c; print usage on bad input." }, { "role": "assistant", "content": "#!/usr/bin/env bash\ns...
script
getopts
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Display the ancestors of process 640 as a tree." }, { "role": "assistant", "content": "pstree -s 640" } ]
single
pstree
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Show the last 20 lines containing '403' in build.log." }, { "role": "assistant", "content": "grep '403' build.log | tail -n 20" } ]
pipeline
grep
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Process all .css files under /data/uploads with optipng using 2 parallel workers via xargs." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=/data/uploads\nfind ...
script
xargs
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "What are the 5 most common entries in column 9 of metrics.csv?" }, { "role": "assistant", "content": "cut -d, -f9 metrics.csv | sort | uniq -c | sort -nr | head -n 5" } ]
pipeline
cut
[ { "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://cdn.internal/api/items" }, { "role": "assistant", "content": "curl -s https://cdn.internal/...
pipeline
curl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Read nodes.txt and for each host, report UP/DOWN based on whether it checks if port 22 is open." }, { "role": "assistant", "content": "#!/usr/bin/env ...
script
ssh
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write a small script that retries a connection to monitor.service.io:5432 up to 3 times, sleeping 5s between attempts." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefai...
script
bash
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Print the 1nd column of data.csv (whitespace separated)." }, { "role": "assistant", "content": "awk '{print $1}' data.csv" } ]
single
awk
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "follow redirects when fetching https://github.io" }, { "role": "assistant", "content": "curl -L https://github.io" } ]
single
curl