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": "Show every open file under data." }, { "role": "assistant", "content": "lsof +D data" } ]
single
lsof
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "move all .gz files into the tmp directory" }, { "role": "assistant", "content": "mv *.gz tmp/" } ]
single
mv
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show what user jenkins is currently doing." }, { "role": "assistant", "content": "w jenkins" } ]
single
w
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Move order.pdf into the vendor folder." }, { "role": "assistant", "content": "mv order.pdf vendor/" } ]
single
mv
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "I need a script that accepts --dir (-d), --output (-o) and --count (-c) via getopts, with a usage message." }, { "role": "assistant", "content": "#!/u...
script
getopts
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Display the children of process 2101." }, { "role": "assistant", "content": "pstree -p 2101" } ]
single
pstree
[ { "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://8.8.8.8/api/items" }, { "role": "assistant", "content": "curl -s https://8.8.8.8/api/items ...
pipeline
curl
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show detailed metadata for build.tmp." }, { "role": "assistant", "content": "stat build.tmp" } ]
single
stat
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Test if inventory.tmp is present and has content; report missing, empty, or its line count." }, { "role": "assistant", "content": "#!/usr/bin/en...
script
if
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Fetch JSON from https://app01.service.io/api/users and pretty-print it with jq." }, { "role": "assistant", "content": "curl -s https://app01.ser...
pipeline
curl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "send a GET request to https://1.1.1.1/api and show the response headers" }, { "role": "assistant", "content": "curl -I https://1.1.1.1/api" } ...
single
curl
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Find the 5 hottest values in column 3 of transactions.csv (by frequency)." }, { "role": "assistant", "content": "cut -d, -f3 transactions.csv | sort | uniq -c | sort -nr | head -n 5" } ]
pipeline
cut
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "I need to tally how many times each log level appears in error.log." }, { "role": "assistant", "content": "grep -oE '(INFO|WARN|ERROR|DEBUG)' error.log | sort | uniq -c | sort -nr" } ]
pipeline
grep
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Replace every occurrence of 'disabled' with 'enabled' in session.conf and print the result." }, { "role": "assistant", "content": "sed 's/disable...
single
sed
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Take changelog.log and convert everything to uppercase." }, { "role": "assistant", "content": "cat changelog.log | tr 'a-z' 'A-Z'" } ]
pipeline
tr
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Help me list the PIDs of apache2 sorted by memory use." }, { "role": "assistant", "content": "ps -C apache2 -o pid=,rss= --sort=-rss" } ]
pipeline
ps
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "count the bytes in migration.tar.gz" }, { "role": "assistant", "content": "wc -c migration.tar.gz" } ]
single
wc
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Show the first 20 lines of catalog.sh." }, { "role": "assistant", "content": "head -n 20 catalog.sh" } ]
single
head
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Is the mysql service currently active?" }, { "role": "assistant", "content": "systemctl is-active mysql" } ]
single
systemctl
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Write a small script that verifies the environment variables DB_PASS, AWS_REGION and ENV are all set before running." }, { "role": "assistant", "...
script
env
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "From payload.yaml, keep only non-empty lines." }, { "role": "assistant", "content": "cat payload.yaml | grep -v '^$'" } ]
pipeline
grep
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Count how many unique IP-like first fields appear in scheduler.log." }, { "role": "assistant", "content": "awk '{print $1}' scheduler.log | sort ...
pipeline
grep
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "list only the .txt files in dist" }, { "role": "assistant", "content": "ls dist | grep '\\.txt$'" } ]
pipeline
ls
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "replace tabs with commas in dump.conf and write to dump.conf.csv" }, { "role": "assistant", "content": "sed 's/\\t/,/g' dump.conf > dump.conf.csv" }...
pipeline
sed
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "follow redirects when fetching https://web01.example.org" }, { "role": "assistant", "content": "curl -L https://web01.example.org" } ]
single
curl
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Recursively set owner and group of assets to nginx:staff." }, { "role": "assistant", "content": "sudo chown -R nginx:staff assets" } ]
single
chown
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Help me list the PIDs of redis-server sorted by memory use." }, { "role": "assistant", "content": "ps -C redis-server -o pid=,rss= --sort=-rss" } ]
pipeline
ps
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Write me a script that loops over every .png file in backups and removes each matching file." }, { "role": "assistant", "content": "#!/usr/bin/en...
script
rm
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Given index.yaml, strip trailing whitespace." }, { "role": "assistant", "content": "cat index.yaml | sed 's/[[:space:]]*$//'" } ]
pipeline
sed
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Count 'denied' occurrences in the fail2ban journal today." }, { "role": "assistant", "content": "journalctl -u fail2ban --since today --no-pager ...
pipeline
journalctl
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Parse command-line flags -t (tag), -p (port) and -o (output) using getopts and validate that -t is provided." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ntag=\"\...
script
getopts
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Move response.js into the scripts folder." }, { "role": "assistant", "content": "mv response.js scripts/" } ]
single
mv
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Rename archive.old to archive.old.old" }, { "role": "assistant", "content": "mv archive.old archive.old.old" } ]
single
mv
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Count how often each column-5 value appears in app.log; show the 20 most common." }, { "role": "assistant", "content": "cut -d, -f5 app.log | so...
pipeline
cut
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "change permissions to 644 on all files under artifacts" }, { "role": "assistant", "content": "find artifacts -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": "Bump process 2916 to a higher priority (nice -5). Requires root." }, { "role": "assistant", "content": "sudo renice -n -5 -p 2916" } ]
single
renice
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Show the last 20 lines containing 'unauthorized' in gateway.log." }, { "role": "assistant", "content": "grep 'unauthorized' gateway.log | tail -n 20" } ]
pipeline
grep
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "list the distinct error messages in cron.log" }, { "role": "assistant", "content": "grep -i error cron.log | sort -u" } ]
pipeline
grep
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Check the status of systemd-networkd." }, { "role": "assistant", "content": "systemctl status systemd-networkd" } ]
single
systemctl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Write a script that runs checksum with sha256sum on every .xml file in /opt/app, 2 jobs in parallel." }, { "role": "assistant", "content": "#!/u...
script
xargs
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Get the bare PID that holds port 25." }, { "role": "assistant", "content": "lsof -i :25 -t" } ]
single
lsof
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Extract just the email addresses from release.conf." }, { "role": "assistant", "content": "grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' release.c...
pipeline
sed
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "make a bzip2-compressed tarball of modules" }, { "role": "assistant", "content": "tar -cjf modules.tar.bz2 modules" } ]
single
tar
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Read settings.csv, then keep only non-empty lines — as a pipeline." }, { "role": "assistant", "content": "cat settings.csv | grep -v '^$'" } ]
pipeline
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Fetch JSON from https://monitor.corp.net/api/users and pretty-print it with jq." }, { "role": "assistant", "content": "curl -s https://monitor.corp.net/api/users | ...
pipeline
curl
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "I need a preflight check that API_KEY, AWS_REGION and DB_HOST exist in the environment." }, { "role": "assistant", "content": "#!/usr/bin/env bas...
script
env
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "List only directories inside /home/deploy." }, { "role": "assistant", "content": "ls -d /home/deploy/*/" } ]
single
ls
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write a health check that reports UP/DOWN for the node process via its exit code." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nproc=node\nif pgrep -x \"$proc\" >...
script
if
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write an if that checks connectivity to cache.corp.net with a single ping." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nhost=cache.corp.net\nif ping -c1 -W2 \"$h...
script
if
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Move export.yaml into the static folder." }, { "role": "assistant", "content": "mv export.yaml static/" } ]
single
mv
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "How many lines in auth.log mention 'SIGTERM'?" }, { "role": "assistant", "content": "grep -c 'SIGTERM' auth.log | cat" } ]
pipeline
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show the last 10 kernel log lines with timestamps." }, { "role": "assistant", "content": "dmesg -T | tail -n 10" } ]
single
dmesg
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Create a gzip-compressed archive of the downloads directory." }, { "role": "assistant", "content": "tar -czf downloads.tar.gz downloads" } ]
single
tar
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Find the 10 most common 'null'-related lines in error.log." }, { "role": "assistant", "content": "grep 'null' error.log | sort | uniq -c | sort -nr | head -n 10" ...
pipeline
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Check if index.json exists and cat it, otherwise say it's missing." }, { "role": "assistant", "content": "[ -f index.json ] && cat index.json || echo 'not found'" ...
pipeline
chain
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Show the top 5 most frequent values in field 1 of the whitespace-separated file debug.log." }, { "role": "assistant", "content": "awk '{print $1}' debug.log | sort | uniq -c | sort -nr | head -n ...
pipeline
awk
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Run iostat every 1s for 20 reports." }, { "role": "assistant", "content": "iostat 1 20" } ]
single
iostat
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write me a script that watches backup and prints a message whenever the file count changes." }, { "role": "assistant", "content": "#!/usr/bin/env bash...
script
while
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "extract backup.tar.gz into the bin folder" }, { "role": "assistant", "content": "tar -xzf backup.tar.gz -C bin" } ]
single
tar
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Create the bin directory if needed and then cd into it." }, { "role": "assistant", "content": "mkdir -p bin && cd bin" } ]
pipeline
chain
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Given migration.txt, keep only non-empty lines." }, { "role": "assistant", "content": "cat migration.txt | grep -v '^$'" } ]
pipeline
grep
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Create the include directory if needed and then cd into it." }, { "role": "assistant", "content": "mkdir -p include && cd include" } ]
pipeline
chain
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Write a shell script that loops over every .tmp file in /srv/data and compresses each file with gzip." }, { "role": "assistant", "content": "#!/u...
script
gzip
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Create a script that verifies the environment variables PORT, AWS_REGION and REDIS_URL are all set before running." }, { "role": "assistant", "co...
script
env
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Print column 1 of the comma-separated file inventory.csv." }, { "role": "assistant", "content": "awk -F, '{print $1}' inventory.csv" } ]
single
awk
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Copy payment.jpg to modules/ but keep the original timestamps and permissions." }, { "role": "assistant", "content": "cp -p payment.jpg modules/" } ]
single
cp
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "list the size of each subdirectory in uploads" }, { "role": "assistant", "content": "du -h --max-depth=1 uploads" } ]
single
du
[ { "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: -o, -c 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": "download https://db01.local/list.txt and count the lines" }, { "role": "assistant", "content": "curl -s https://db01.local/list.txt | wc -l" } ]
pipeline
curl
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Write a script that requires exactly two arguments (source and destination) and errors out otherwise." }, { "role": "assistant", "content": "#!/u...
script
args
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "How big is vendor overall?" }, { "role": "assistant", "content": "du -sh vendor" } ]
single
du
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Find the most recently modified file in /mnt/data." }, { "role": "assistant", "content": "ls -t /mnt/data | head -n 1" } ]
pipeline
ls
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Find the 10 most common 'timeout'-related lines in access.log." }, { "role": "assistant", "content": "grep 'timeout' access.log | sort | uniq -c | sor...
pipeline
grep
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "How do I count how many celery processes are running?" }, { "role": "assistant", "content": "pgrep -c celery" } ]
pipeline
pgrep
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "I need a preflight check that REDIS_URL, DB_PASS and PORT exist in the environment." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nfor var in REDIS_URL DB_PASS POR...
script
env
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Loop over every .gz file in /home/alice and append its sha256 checksum to checksums.txt." }, { "role": "assistant", "content": "#!/usr/bin/env ba...
script
for
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "How do I count how many redis-server processes are running?" }, { "role": "assistant", "content": "pgrep -c redis-server" } ]
pipeline
pgrep
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Count how many memcached processes are running." }, { "role": "assistant", "content": "pgrep -c memcached" } ]
pipeline
pgrep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Clean up /var/tmp: remove .gz files not modified in 10 days, recording each deletion." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\...
script
find
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Count how often each column-1 value appears in audit.log; show the 10 most common." }, { "role": "assistant", "content": "awk '{print $1}' audit.log | sort | uniq -...
pipeline
awk
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Take payload.ini and keep only non-empty lines." }, { "role": "assistant", "content": "cat payload.ini | grep -v '^$'" } ]
pipeline
grep
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Count total lines across all .zip files in /etc/nginx." }, { "role": "assistant", "content": "find /etc/nginx -type f -name '*.zip' -print0 | xargs -0 cat | wc -l" } ]
pipeline
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Print the 2nd column of data.csv (whitespace separated)." }, { "role": "assistant", "content": "awk '{print $2}' data.csv" } ]
single
awk
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Case-insensitively find 'stale' in mail.log." }, { "role": "assistant", "content": "grep -i 'stale' mail.log" } ]
single
grep
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "How many lines in audit.log mention 'dropped'?" }, { "role": "assistant", "content": "grep -c 'dropped' audit.log | cat" } ]
pipeline
grep
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Append the current date to request.log." }, { "role": "assistant", "content": "date >> request.log" } ]
pipeline
redirection
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "recursively search /opt/scripts for 'fatal' and show line numbers" }, { "role": "assistant", "content": "grep -rn 'fatal' /opt/scripts" } ]
single
grep
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Rename test.sql to test.sql.old without overwriting if the target already exists." }, { "role": "assistant", "content": "mv -n test.sql test.sql.old" } ]
single
mv
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "List the disk usage of tests broken down one level deep." }, { "role": "assistant", "content": "du -h --max-depth=1 tests 2>/dev/null | sort -rh" } ...
pipeline
du
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Retry curl to https://monitor.local/health at most 4 times with a 1-second backoff, failing loudly if it never succeeds." }, { "role": "assistant", ...
script
curl
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Replace every occurrence of 'staging' with 'password' in backup.conf and print the result." }, { "role": "assistant", "content": "sed 's/staging/...
single
sed
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Report virtual-memory statistics every 3 seconds, 20 times." }, { "role": "assistant", "content": "vmstat 3 20" } ]
single
vmstat
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a small script that runs optipng on every .gz file in /srv/data, 4 jobs in parallel." }, { "role": "assistant", "content": "#!/usr/bin/env bash\...
script
xargs
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Find files in tests owned by ec2-user." }, { "role": "assistant", "content": "find tests -type f -user ec2-user" } ]
single
find
[ { "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 95%." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail...
script
while
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Fetch JSON from https://monitor.example.org/api/users and pretty-print it with jq." }, { "role": "assistant", "content": "curl -s https://monitor.example.org/api/users | jq ." } ]
pipeline
curl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "For each .zip file under /mnt/storage, record a sha256 checksum in a manifest file." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -e...
script
for
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Retry connection to api.corp.net:5432 at most 6 times with a 2-second backoff, failing loudly if it never succeeds." }, { "role": "assistant", "...
script
bash
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write a backup script that xz-compresses /home/deploy into a timestamped tarball under /srv/backup and keeps only the 5 newest." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -eu...
script
tar
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "which systemd-networkd log lines mention 'failed'?" }, { "role": "assistant", "content": "journalctl -u systemd-networkd --no-pager | grep -i failed" ...
pipeline
journalctl