messages
listlengths
3
3
category
stringclasses
3 values
utility
stringclasses
89 values
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Extract the first field of inventory.csv using comma as the delimiter." }, { "role": "assistant", "content": "cut -d, -f1 inventory.csv" } ]
single
cut
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show me how to count 'exception' occurrences in the prometheus journal today." }, { "role": "assistant", "content": "journalctl -u prometheus --since ...
pipeline
journalctl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Find the 10 most common 'permission denied'-related lines in scheduler.log." }, { "role": "assistant", "content": "grep 'permission denied' sche...
pipeline
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Print column 4 of the comma-separated file inventory.csv." }, { "role": "assistant", "content": "awk -F, '{print $4}' inventory.csv" } ]
single
awk
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Replace every occurrence of 'warning' with 'http' in changelog.tsv and print the result." }, { "role": "assistant", "content": "sed 's/warning/http/g' changelog.tsv" } ]
single
sed
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Write a backup script that xz-compresses /var/www into a timestamped tarball under /data/backup and keeps only the 5 newest." }, { "role": "assistant...
script
tar
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Case-insensitively find 'deprecated' in syslog.log." }, { "role": "assistant", "content": "grep -i 'deprecated' syslog.log" } ]
single
grep
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "replace tabs with commas in error.json and write to error.json.csv" }, { "role": "assistant", "content": "sed 's/\\t/,/g' error.json > error.jso...
pipeline
sed
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Append the current date to debug.log." }, { "role": "assistant", "content": "date >> debug.log" } ]
pipeline
redirection
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Case-insensitively find 'failed' in audit.log." }, { "role": "assistant", "content": "grep -i 'failed' audit.log" } ]
single
grep
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write a start/stop/restart/status control script for nginx using a case statement." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nsvc=nginx\ncase \"${1:-}\" in\n ...
script
case
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Edit dump.tsv in place, replacing 'PUT' with 'token'." }, { "role": "assistant", "content": "sed -i 's/PUT/token/g' dump.tsv" } ]
single
sed
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Count total lines across all .zip files in bin." }, { "role": "assistant", "content": "find bin -type f -name '*.zip' -print0 | xargs -0 cat | wc -l" } ]
pipeline
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Take auth.ini and convert everything to uppercase." }, { "role": "assistant", "content": "cat auth.ini | tr 'a-z' 'A-Z'" } ]
pipeline
tr
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Find the most recently modified file in lib." }, { "role": "assistant", "content": "ls -t lib | head -n 1" } ]
pipeline
ls
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "send a GET request to https://backup.service.io/api and show the response headers" }, { "role": "assistant", "content": "curl -I https://backup.s...
single
curl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Test if transaction.html is present and has content; report missing, empty, or its line count." }, { "role": "assistant", "content": "#!/usr/bin...
script
if
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "delete all blank lines from notes.yaml" }, { "role": "assistant", "content": "sed '/^$/d' notes.yaml" } ]
single
sed
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "What are the 10 most common entries in column 3 of users.csv?" }, { "role": "assistant", "content": "cut -d, -f3 users.csv | sort | uniq -c | so...
pipeline
cut
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Find the most recently modified file in public." }, { "role": "assistant", "content": "ls -t public | head -n 1" } ]
pipeline
ls
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Set config.sql to permissions 644." }, { "role": "assistant", "content": "chmod 644 config.sql" } ]
single
chmod
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Count total lines across all .gif files in public." }, { "role": "assistant", "content": "find public -type f -name '*.gif' -print0 | xargs -0 cat | wc -l" } ]
pipeline
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Can you write a script that verifies the environment variables API_KEY, REDIS_URL and AWS_REGION are all set before running?" }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo p...
script
env
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "which directories under reports are eating the most space?" }, { "role": "assistant", "content": "du -h --max-depth=1 reports | sort -rh" } ]
pipeline
du
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write a small script that converts every .png in the current directory to .jpg using ImageMagick, keeping originals." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\...
script
for
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Count occurrences of each unique line in server.txt (assume it's sorted)." }, { "role": "assistant", "content": "uniq -c server.txt" } ]
single
uniq
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Count how many unique IP-like first fields appear in nginx-error.log." }, { "role": "assistant", "content": "awk '{print $1}' nginx-error.log | sort |...
pipeline
grep
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Write a Bash script that verifies the environment variables API_KEY, PORT and REDIS_URL are all set before running." }, { "role": "assistant", "c...
script
env
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Show the contents of the backup directory sorted by modification time, newest first." }, { "role": "assistant", "content": "ls -lt backup" } ]
single
ls
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Check if data.tar.gz exists and cat it, otherwise say it's missing." }, { "role": "assistant", "content": "[ -f data.tar.gz ] && cat data.tar.gz || echo 'not found'...
pipeline
chain
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "change permissions to 644 on all files under tmp" }, { "role": "assistant", "content": "find tmp -type f -print0 | xargs -0 chmod 644" } ]
pipeline
find
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "I need a rotating backup: archive logs into /data/backup with bzip2, retain 30 copies." }, { "role": "assistant", "content": "#!/usr/bin/env bash...
script
tar
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "I need a bash script that compresses each file with gzip for all .js files under data." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset...
script
gzip
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write a shell script that accepts --dir (-d), --name (-n) and --tag (-t) via getopts, with a usage message." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=\"\"...
script
getopts
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "How many lines in dmesg.log mention 'unauthorized'?" }, { "role": "assistant", "content": "grep -c 'unauthorized' dmesg.log | cat" } ]
pipeline
grep
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Please show just the first line in changelog.csv." }, { "role": "assistant", "content": "head -n 1 changelog.csv" } ]
single
head
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "download https://db01.example.org/list.txt and count the lines" }, { "role": "assistant", "content": "curl -s https://db01.example.org/list.txt | wc -l" } ]
pipeline
curl
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Copy access.txt to static/ but keep the original timestamps and permissions." }, { "role": "assistant", "content": "cp -p access.txt static/" }...
single
cp
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "replace tabs with commas in summary.log and write to summary.log.csv" }, { "role": "assistant", "content": "sed 's/\\t/,/g' summary.log > summary...
pipeline
sed
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "gzip every .log file under project" }, { "role": "assistant", "content": "find project -type f -name '*.log' -print0 | xargs -0 gzip" } ]
pipeline
find
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "List only directories inside data." }, { "role": "assistant", "content": "ls -d data/*/" } ]
single
ls
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Clean up cache: remove .cache files not modified in 21 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": "Write an if that checks connectivity to api.service.io with a single ping." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nhost=api.s...
script
if
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "search all .gif files under project for the word TODO" }, { "role": "assistant", "content": "find project -name '*.gif' -print0 | xargs -0 grep -l TODO" } ]
pipeline
find
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Write me a script that deletes files older than 1 days from logs, logging each removal." }, { "role": "assistant", "content": "#!/usr/bin/env bas...
script
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "I need to follow the apache2 journal but only show lines mentioning 'timeout'." }, { "role": "assistant", "content": "journalctl -u apache2 -f | grep --line-buffered -i 'timeout'" } ]
pipeline
journalctl
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Run iostat every 3s for 20 reports." }, { "role": "assistant", "content": "iostat 3 20" } ]
single
iostat
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Process all .png files under /mnt/storage with checksum with sha256sum using 2 parallel workers via xargs." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=/mnt/...
script
xargs
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "change permissions to 644 on all files under /home/alice" }, { "role": "assistant", "content": "find /home/alice -type f -print0 | xargs -0 chmod 644" } ]
pipeline
find
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Edit release.md in place, replacing '0.0.0.0' with 'password'." }, { "role": "assistant", "content": "sed -i 's/0.0.0.0/password/g' release.md" } ]
single
sed
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Rename invoice.bak to invoice.bak.old without overwriting if the target already exists." }, { "role": "assistant", "content": "mv -n invoice.bak invoi...
single
mv
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Back up /data/uploads to /mnt/backup as a dated gzip archive, pruning all but the last 14 backups." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -...
script
tar
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "move all .json files into the bin directory" }, { "role": "assistant", "content": "mv *.json bin/" } ]
single
mv
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Can you write a script that retries a curl to https://cdn.example.org/health up to 10 times, sleeping 5s between attempts?" }, { "role": "assistant", ...
script
curl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show me how to list the unique 'unreachable' messages in gc.log." }, { "role": "assistant", "content": "grep 'unreachable' gc.log | sort -u" } ]
pipeline
grep
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "From inventory.tsv, list the 10 most frequent field-9 entries with their counts." }, { "role": "assistant", "content": "awk '{print $9}' inventory.tsv | sort | uniq -c | sort -nr | head -n 10" ...
pipeline
awk
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Print the 4nd column of metrics.log (whitespace separated)." }, { "role": "assistant", "content": "awk '{print $4}' metrics.log" } ]
single
awk
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "print lines of data.csv where column 4 is greater than 100" }, { "role": "assistant", "content": "awk '$4 > 100' data.csv" } ]
single
awk
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Can you write a script that categorizes a filename by extension using case (is a .tar.gz an image, archive, doc?)?" }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nf...
script
case
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Download https://backup.internal/file.zip and save it with its remote name." }, { "role": "assistant", "content": "curl -O https://backup.internal/file.zip" } ]
single
curl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Is the mongod service currently active?" }, { "role": "assistant", "content": "systemctl is-active mongod" } ]
single
systemctl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "download https://proxy.service.io/list.txt and count the lines" }, { "role": "assistant", "content": "curl -s https://proxy.service.io/list.txt ...
pipeline
curl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "extract all the 'name' fields from https://www.local/api/users" }, { "role": "assistant", "content": "curl -s https://www.local/api/users | jq -...
pipeline
curl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "POST a JSON body to https://api.example.com/api/users" }, { "role": "assistant", "content": "curl -X POST -H 'Content-Type: application/json' -d...
single
curl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "I need to count 'SIGTERM' occurrences in the redis journal today." }, { "role": "assistant", "content": "journalctl -u redis --since today --no-...
pipeline
journalctl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Print the contents of dump.ini to the terminal." }, { "role": "assistant", "content": "cat dump.ini" } ]
single
cat
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Report virtual-memory statistics every 10 seconds, 20 times." }, { "role": "assistant", "content": "vmstat 10 20" } ]
single
vmstat
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "List all files in /usr/local/bin, including hidden ones, in long format." }, { "role": "assistant", "content": "ls -la /usr/local/bin" } ]
single
ls
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Count how often each column-1 value appears in export.csv; show the 5 most common." }, { "role": "assistant", "content": "awk '{print $1}' export.csv ...
pipeline
awk
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show the top 15 most frequent values in field 5 of the comma-separated file scheduler.log." }, { "role": "assistant", "content": "cut -d, -f5 scheduler.log | sort |...
pipeline
cut
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "copy the whole tmp folder to tmp_copy recursively" }, { "role": "assistant", "content": "cp -r tmp tmp_copy" } ]
single
cp
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Archive docs and pipe it over ssh to back it up on a remote host." }, { "role": "assistant", "content": "tar -czf - docs | ssh bob@monitor.example.org...
pipeline
tar
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Copy test.zip to media/ but keep the original timestamps and permissions." }, { "role": "assistant", "content": "cp -p test.zip media/" } ]
single
cp
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "delete all blank lines from test.tsv" }, { "role": "assistant", "content": "sed '/^$/d' test.tsv" } ]
single
sed
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "I need a retry wrapper around curl to https://git.local/health: 4 attempts, 1s apart." }, { "role": "assistant", "content": "#!/usr/bin/env bash...
script
curl
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Back up all PostgreSQL databases individually to /backup as compressed dumps." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndest=/b...
script
pg_dump
[ { "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://mail.internal/api/items" }, { "role": "assistant", "content": "curl -s https://mail.internal/api/items | jq 'le...
pipeline
curl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Fail fast if any of DB_HOST, API_KEY, AWS_REGION is unset — write it as a bash guard." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset ...
script
env
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Make session.txt executable." }, { "role": "assistant", "content": "chmod +x session.txt" } ]
single
chmod
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Process all .css files under /srv/data with optipng using 2 parallel workers via xargs." }, { "role": "assistant", "content": "#!/usr/bin/env bas...
script
xargs
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "replace tabs with commas in event.md and write to event.md.csv" }, { "role": "assistant", "content": "sed 's/\\t/,/g' event.md > event.md.csv" } ]
pipeline
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 session.conf." }, { "role": "assistant", "content": "grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' session.co...
pipeline
sed
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write a Bash script that runs checksum with sha256sum on every .pdf file in logs, 4 jobs in parallel." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=logs\nfind...
script
xargs
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Find 'null' in scheduler.log plus 3 lines of context around each match." }, { "role": "assistant", "content": "grep -C 3 'null' scheduler.log" ...
single
grep
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "search all .cache files under data for the word TODO" }, { "role": "assistant", "content": "find data -name '*.cache' -print0 | xargs -0 grep -l TODO" } ]
pipeline
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "I need to list the unique 'stale' messages in worker.log." }, { "role": "assistant", "content": "grep 'stale' worker.log | sort -u" } ]
pipeline
grep
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Create a gzip-compressed archive of the dist directory." }, { "role": "assistant", "content": "tar -czf dist.tar.gz dist" } ]
single
tar
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Retry git fetch from origin at most 10 times with a 2-second backoff, failing loudly if it never succeeds." }, { "role": "assistant", "content":...
script
git
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "list the distinct error messages in mail.log" }, { "role": "assistant", "content": "grep -i error mail.log | sort -u" } ]
pipeline
grep
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "list only the .json files in /usr/local/bin" }, { "role": "assistant", "content": "ls /usr/local/bin | grep '\\.json$'" } ]
pipeline
ls
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Download https://monitor.internal/file.zip and save it with its remote name." }, { "role": "assistant", "content": "curl -O https://monitor.internal/file.zip" } ]
single
curl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Find the PIDs of all python3 processes." }, { "role": "assistant", "content": "pgrep python3" } ]
single
pgrep
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Write a start/stop/restart/status control script for apache2 using a case statement." }, { "role": "assistant", "content": "#!/usr/bin/env bash\n...
script
case
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Case-insensitively find 'traceback' in output.log." }, { "role": "assistant", "content": "grep -i 'traceback' output.log" } ]
single
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "print lines of inventory.csv where column 3 is greater than 100" }, { "role": "assistant", "content": "awk '$3 > 100' inventory.csv" } ]
single
awk
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "How many lines in nginx-access.log mention 'critical'?" }, { "role": "assistant", "content": "grep -c 'critical' nginx-access.log | cat" } ]
pipeline
grep
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show a recursive listing of fixtures." }, { "role": "assistant", "content": "ls -R fixtures" } ]
single
ls
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Edit index.yaml in place, replacing 'true' with 'token'." }, { "role": "assistant", "content": "sed -i 's/true/token/g' index.yaml" } ]
single
sed
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "make a bzip2-compressed tarball of logs" }, { "role": "assistant", "content": "tar -cjf logs.tar.bz2 logs" } ]
single
tar
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "print lines of access.log where column 1 is greater than 100" }, { "role": "assistant", "content": "awk '$1 > 100' access.log" } ]
single
awk