messages
listlengths
3
3
category
stringclasses
3 values
utility
stringclasses
89 values
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Fetch https://www.internal/health and print only the HTTP status code." }, { "role": "assistant", "content": "curl -s -o /dev/null -w '%{http_code}' h...
single
curl
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write an if that checks connectivity to 1.1.1.1 with a single ping." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nhost=1.1.1.1\nif ping -c1 -W2 \"$host\" >/dev/nu...
script
if
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Fetch JSON from https://proxy.example.com/api/users and pretty-print it with jq." }, { "role": "assistant", "content": "curl -s https://proxy.exa...
pipeline
curl
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Back up all PostgreSQL databases individually to /mnt/backup as compressed dumps." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndes...
script
pg_dump
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "On the file access.xml, print it with line numbers." }, { "role": "assistant", "content": "nl access.xml" } ]
single
nl
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Parse command-line flags -t (tag), -c (count) and -o (output) using getopts and validate that -t is provided." }, { "role": "assistant", "content...
script
getopts
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Fetch JSON from https://monitor.internal/api/users and pretty-print it with jq." }, { "role": "assistant", "content": "curl -s https://monitor.internal/api/users | ...
pipeline
curl
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Sort data.txt numerically in reverse order." }, { "role": "assistant", "content": "sort -nr data.txt" } ]
single
sort
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "I need a script that deletes files older than 3 days from /tmp, logging each removal." }, { "role": "assistant", "content": "#!/usr/bin/env bash...
script
find
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Remove write permission for group and others on notes.tar.gz." }, { "role": "assistant", "content": "chmod go-w notes.tar.gz" } ]
single
chmod
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "List all files in data, including hidden ones, in long format." }, { "role": "assistant", "content": "ls -la data" } ]
single
ls
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Set event.json to permissions 644." }, { "role": "assistant", "content": "chmod 644 event.json" } ]
single
chmod
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "From build.log, convert everything to uppercase." }, { "role": "assistant", "content": "cat build.log | tr 'a-z' 'A-Z'" } ]
pipeline
tr
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Create a directory called fixtures." }, { "role": "assistant", "content": "mkdir fixtures" } ]
single
mkdir
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "reload postgresql without a full restart" }, { "role": "assistant", "content": "sudo systemctl reload postgresql" } ]
single
systemctl
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show lines in request.log that do NOT contain 'refused'." }, { "role": "assistant", "content": "grep -v 'refused' request.log" } ]
single
grep
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "I need a preflight check that PORT, DB_PASS and API_KEY exist in the environment." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nse...
script
env
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "What are the 10 biggest files under migrations?" }, { "role": "assistant", "content": "find migrations -type f -printf '%s %p\\n' 2>/dev/null | s...
pipeline
find
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Retry git fetch from origin at most 4 times with a 2-second backoff, failing loudly if it never succeeds." }, { "role": "assistant", "content": "#!/usr/bin/env bash...
script
git
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Count the number of lines in export.json." }, { "role": "assistant", "content": "wc -l export.json" } ]
single
wc
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "How many lines in syslog mention 'ERROR'?" }, { "role": "assistant", "content": "grep -c 'ERROR' syslog | cat" } ]
pipeline
grep
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "list only the .sql files in /var/log" }, { "role": "assistant", "content": "ls /var/log | grep '\\.sql$'" } ]
pipeline
ls
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Sort profile.txt numerically in reverse order." }, { "role": "assistant", "content": "sort -nr profile.txt" } ]
single
sort
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write a Bash script that loops over every .old file in /data/uploads and compresses each file with gzip." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=/data/u...
script
gzip
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "check the type of every file in dist" }, { "role": "assistant", "content": "file dist/*" } ]
single
file
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Fetch JSON from https://staging.example.org/api/users and pretty-print it with jq." }, { "role": "assistant", "content": "curl -s https://staging.example.org/api/users | jq ." } ]
pipeline
curl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Write a monitoring script that warns when memory usage exceeds 95%." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefai...
script
free
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Write a backup script that gzip-compresses backups into a timestamped tarball under /mnt/backup and keeps only the 3 newest." }, { "role": "assistan...
script
tar
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Write a backup script that xz-compresses /var/lib/app into a timestamped tarball under /mnt/backup and keeps only the 3 newest." }, { "role": "assistant", "content"...
script
tar
[ { "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 'TODO' messages in audit.log." }, { "role": "assistant", "content": "grep 'TODO' audit.log | sort -u" } ]
pipeline
grep
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a small script that dumps every MySQL database into its own gzip file under /srv/backup, keeping 3 days." }, { "role": "assistant", "content": "...
script
mysqldump
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "search all .cache files under static for the word TODO" }, { "role": "assistant", "content": "find static -name '*.cache' -print0 | xargs -0 gre...
pipeline
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Where is the curl binary located?" }, { "role": "assistant", "content": "which curl" } ]
single
which
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Print only lines 10 through 20 of settings.log." }, { "role": "assistant", "content": "sed -n '10,20p' settings.log" } ]
single
sed
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "POST a JSON body to https://staging.internal/api/users" }, { "role": "assistant", "content": "curl -X POST -H 'Content-Type: application/json' -...
single
curl
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "I/O stats in MB/s every 2s for 5 samples." }, { "role": "assistant", "content": "iostat -m 2 5" } ]
single
iostat
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Run 'gzip huge.log' at a lower priority (nice 1)." }, { "role": "assistant", "content": "nice -n 1 gzip huge.log" } ]
single
nice
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "I need getopts handling for three options: -l, -p and -i; print usage on bad input." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -e...
script
getopts
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "strip leading whitespace from every line of results.conf and save to clean.txt" }, { "role": "assistant", "content": "sed 's/^[[:space:]]*//' results....
pipeline
sed
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show me the 20 largest subdirectories of backup." }, { "role": "assistant", "content": "du -h backup/* 2>/dev/null | sort -rh | head -n 20" } ]
pipeline
du
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Print column 2 of the comma-separated file data.csv." }, { "role": "assistant", "content": "awk -F, '{print $2}' data.csv" } ]
single
awk
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Fetch JSON from https://10.0.0.5/api/users and pretty-print it with jq." }, { "role": "assistant", "content": "curl -s https://10.0.0.5/api/users | jq ." } ]
pipeline
curl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Find the biggest files under /etc/nginx." }, { "role": "assistant", "content": "du -ah /etc/nginx | sort -rh | head -n 20" } ]
pipeline
du
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Process all .log files under /opt/app with checksum with sha256sum using 8 parallel workers via xargs." }, { "role": "assistant", "content": "#!/usr/bin/env bash\ns...
script
xargs
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "show only the lines in schema.csv that appear more than once" }, { "role": "assistant", "content": "uniq -d schema.csv" } ]
single
uniq
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Restart the systemd-networkd service." }, { "role": "assistant", "content": "sudo systemctl restart systemd-networkd" } ]
single
systemctl
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "search all .py files under assets for the word TODO" }, { "role": "assistant", "content": "find assets -name '*.py' -print0 | xargs -0 grep -l TODO" } ]
pipeline
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Read output.log, then count each unique line, most common first — as a pipeline." }, { "role": "assistant", "content": "cat output.log | sort | uniq -...
pipeline
uniq
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Copy payload.xml to cache/ but keep the original timestamps and permissions." }, { "role": "assistant", "content": "cp -p payload.xml cache/" }...
single
cp
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "On the file credentials.png, show a hex dump of the first 64 bytes." }, { "role": "assistant", "content": "xxd -l 64 credentials.png" } ]
single
xxd
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Restart the mongod service." }, { "role": "assistant", "content": "sudo systemctl restart mongod" } ]
single
systemctl
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "I want a cleanup script for /var/log that purges .old files older than 30 days." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -...
script
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a shell script that watches include and prints a message whenever the file count changes." }, { "role": "assistant", "content": "#!/usr/bin/env ...
script
while
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "I need to tally how many times each log level appears in gateway.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": "Find the PIDs of all redis-server processes." }, { "role": "assistant", "content": "pgrep redis-server" } ]
single
pgrep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Find files in assets larger than +500M." }, { "role": "assistant", "content": "find assets -type f -size +500M" } ]
single
find
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Write a small script that pre-creates dated subdirectories under /mnt/backup for the next 30 days." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -...
script
for
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Report iostat throughput in megabytes, 10s interval, 20 rounds." }, { "role": "assistant", "content": "iostat -m 10 20" } ]
single
iostat
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Show its size, owner and permissions of transaction.xml." }, { "role": "assistant", "content": "stat transaction.xml" } ]
single
stat
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write a small script that loops over every .csv file in /data/uploads and removes each matching file." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=/data/uplo...
script
rm
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "I need per-database MySQL backups written to /srv/backup and pruned after 14 days." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nse...
script
mysqldump
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Find the biggest files under media." }, { "role": "assistant", "content": "du -ah media | sort -rh | head -n 20" } ]
pipeline
du
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write an if that checks connectivity to staging.internal with a single ping." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nhost=staging.internal\nif ping -c1 -W2 ...
script
if
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Restart the mariadb service." }, { "role": "assistant", "content": "sudo systemctl restart mariadb" } ]
single
systemctl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a Bash script that retries a curl to https://backup.example.com/health up to 10 times, sleeping 2s between attempts." }, { "role": "assistant", ...
script
curl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Retry connection to db02.local:5432 at most 4 times with a 5-second backoff, failing loudly if it never succeeds." }, { "role": "assistant", "content"...
script
bash
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Help me count how many python processes are running." }, { "role": "assistant", "content": "pgrep -c python" } ]
pipeline
pgrep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Recursively set owner and group of modules to redis:developers." }, { "role": "assistant", "content": "sudo chown -R redis:developers modules" } ]
single
chown
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Retry git fetch from origin at most 3 times with a 1-second backoff, failing loudly if it never succeeds." }, { "role": "assistant", "content": "#!/usr/bin/env bash...
script
git
[ { "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 release/2.0." }, { "role": "assistant", "content": "git checkout -b release/2.0" } ]
single
git
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write a small script that deletes files older than 2 days from cache, logging each removal." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ntarget=cache\nage=2\nfin...
script
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show the top 5 most frequent values in field 9 of the comma-separated file products.tsv." }, { "role": "assistant", "content": "cut -d, -f9 products.t...
pipeline
cut
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Read the CSV data.csv field by field (id,name,email) with a while loop and print a greeting." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nwhile IFS=, read -r id ...
script
while
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Read event.log, then show the 20 longest lines — as a pipeline." }, { "role": "assistant", "content": "cat event.log | awk '{ print length, $0 }' | so...
pipeline
awk
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "I need a retry wrapper around git fetch from origin: 6 attempts, 5s apart." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefa...
script
git
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Append the current date to gc.log." }, { "role": "assistant", "content": "date >> gc.log" } ]
pipeline
redirection
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Test if credentials.xml is present and has content; report missing, empty, or its line count." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nfile=credentials.xml\n...
script
if
[ { "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 nginx-access.log." }, { "role": "assistant", "content": "grep -oE '(INFO|WARN|ERROR|DEBUG)' nginx-access.lo...
pipeline
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show the user and group IDs for git." }, { "role": "assistant", "content": "id git" } ]
single
id
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "I need getopts handling for three options: -o, -p and -l; print usage on bad input." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\no...
script
getopts
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Write a monitoring script that warns when root filesystem usage exceeds 95%." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -eu...
script
df
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "strip leading whitespace from every line of backup.json and save to clean.txt" }, { "role": "assistant", "content": "sed 's/^[[:space:]]*//' backup.json > clean.txt...
pipeline
sed
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Tally column 5 of users.tsv and print the 15 top values by count." }, { "role": "assistant", "content": "cut -d, -f5 users.tsv | sort | uniq -c | sort -nr | head -n...
pipeline
cut
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Compress server.log with gzip." }, { "role": "assistant", "content": "gzip server.log" } ]
single
gzip
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Retry connection to backup.local:5432 at most 3 times with a 2-second backoff, failing loudly if it never succeeds." }, { "role": "assistant", "conten...
script
bash
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Process all .png files under logs with optipng using 2 parallel workers via xargs." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nse...
script
xargs
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Clean up /tmp: remove .log files not modified in 60 days, recording each deletion." }, { "role": "assistant", "content": "#!/usr/bin/env bash\ns...
script
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Process all .conf files under /opt/app with gzip using 2 parallel workers via xargs." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=/opt/app\nfind \"$dir\" -ty...
script
xargs
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Given event.txt, convert everything to uppercase." }, { "role": "assistant", "content": "cat event.txt | tr 'a-z' 'A-Z'" } ]
pipeline
tr
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write an if that checks connectivity to web01.internal with a single ping." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefa...
script
if
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Count how many files are in src." }, { "role": "assistant", "content": "ls -1 src | wc -l" } ]
pipeline
ls
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Recursively set owner and group of include to ubuntu:staff." }, { "role": "assistant", "content": "sudo chown -R ubuntu:staff include" } ]
single
chown
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Print only lines 10 through 20 of profile.csv." }, { "role": "assistant", "content": "sed -n '10,20p' profile.csv" } ]
single
sed
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Create a script that runs checksum with sha256sum on every .py file in /var/lib/app, 2 jobs in parallel." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=/var/li...
script
xargs
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "what are the top 10 lines in metrics.log?" }, { "role": "assistant", "content": "head -n 10 metrics.log" } ]
single
head
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "What are the 20 most common entries in column 2 of output.log?" }, { "role": "assistant", "content": "awk '{print $2}' output.log | sort | uniq ...
pipeline
awk
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "List the disk usage of /opt/app broken down one level deep." }, { "role": "assistant", "content": "du -h --max-depth=1 /opt/app 2>/dev/null | sort -rh" } ]
pipeline
du
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "replace tabs with commas in export.md and write to export.md.csv" }, { "role": "assistant", "content": "sed 's/\\t/,/g' export.md > export.md.csv...
pipeline
sed
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "I want a cleanup script for /tmp that purges .gz files older than 14 days." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ntarget=/tmp\nage=14\n[ -d \"$target\" ] |...
script
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "I need a rotating backup: archive backups into /data/backup with gzip, retain 30 copies." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nsrc=backups\ndest=/data/bac...
script
tar