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": "Check if event.sh exists and cat it, otherwise say it's missing."
},
{
"role": "assistant",
"content": "[ -f event.sh ] && cat event.sh || echo 'not f... | pipeline | chain |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Write a script that runs gzip on every .html file in logs, 4 jobs in parallel."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=logs\nfind \"$dir\" -type f -name... | script | xargs |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Download https://registry.corp.net/file.zip and save it with its remote name."
},
{
"role": "assistant",
"content": "curl -O https://registry.corp.net... | single | curl |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Help me total the resident memory of all sshd processes in MB."
},
{
"role": "assistant",
"content": "ps -C sshd -o rss= | awk '{s+=$1} END{print s/1024 \" MB\"}'"
... | pipeline | ps |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Run vmstat every 10s and stop after 3 samples."
},
{
"role": "assistant",
"content": "vmstat 10 3"
}
] | single | vmstat |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Sort backup.md and remove duplicate lines."
},
{
"role": "assistant",
"content": "sort -u backup.md"
}
] | single | sort |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "List just the filenames under /var/log that contain 'segfault'."
},
{
"role": "assistant",
"content": "grep -rl 'segfault' /var/log"
}
] | single | grep |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Read access.json, then convert everything to uppercase — as a pipeline."
},
{
"role": "assistant",
"content": "cat access.json | tr 'a-z' 'A-Z'"
}
] | pipeline | tr |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Change the owner of session.conf to git."
},
{
"role": "assistant",
"content": "sudo chown git session.conf"
}
] | single | chown |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "extract all the 'name' fields from https://proxy.local/api/users"
},
{
"role": "assistant",
"content": "curl -s https://proxy.local/api/users | ... | pipeline | curl |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Clean up logs: remove .bak files not modified in 30 days, recording each deletion."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nta... | script | find |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Change the owner of data.log to redis."
},
{
"role": "assistant",
"content": "sudo chown redis data.log"
}
] | single | chown |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Mirror the site https://mail.internal recursively."
},
{
"role": "assistant",
"content": "wget -r -np https://mail.internal"
}
] | single | wget |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Sum up the values in column 1 of access.log."
},
{
"role": "assistant",
"content": "awk '{sum+=$1} END{print sum}' access.log"
}
] | single | awk |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Create a script that verifies the environment variables AWS_REGION, DB_PASS and DB_HOST are all set before running."
},
{
"role": "assistant",
"... | script | env |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "get the number of items in the JSON array at https://web01.service.io/api/items"
},
{
"role": "assistant",
"content": "curl -s https://web01.serv... | pipeline | curl |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "list only the .css files in config"
},
{
"role": "assistant",
"content": "ls config | grep '\\.css$'"
}
] | pipeline | ls |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Remove write permission for group and others on invoice.sql."
},
{
"role": "assistant",
"content": "chmod go-w invoice.sql"
}
] | single | chmod |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "I need a preflight check that PORT, REDIS_URL and DB_PASS exist in the environment."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nf... | script | env |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Write a small script that runs optipng on every .jpg file in /opt/app, 2 jobs in parallel."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\... | script | xargs |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "I need a script that deletes .cache files older than 7 days from /var/tmp and logs what it removed."
},
{
"role": "assistant",
"content": "#!/us... | script | find |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Please print it with line numbers in customer.md."
},
{
"role": "assistant",
"content": "nl customer.md"
}
] | single | nl |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Show the 10 largest subdirectories in scripts."
},
{
"role": "assistant",
"content": "du -h scripts/* | sort -rh | head -n 10"
}
] | pipeline | du |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Show me the 10 biggest files under /srv/www."
},
{
"role": "assistant",
"content": "find /srv/www -type f -printf '%s %p\\n' 2>/dev/null | sort -... | pipeline | find |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "list only the .gif files in artifacts"
},
{
"role": "assistant",
"content": "ls artifacts | grep '\\.gif$'"
}
] | pipeline | ls |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Process all .jpg files under data with optipng using 4 parallel workers via xargs."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nse... | script | xargs |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Check the status of nginx."
},
{
"role": "assistant",
"content": "systemctl status nginx"
}
] | single | systemctl |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Print it with line numbers of config.log."
},
{
"role": "assistant",
"content": "nl config.log"
}
] | single | nl |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "search all .png files under build for the word TODO"
},
{
"role": "assistant",
"content": "find build -name '*.png' -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": "Create a script that pre-creates dated subdirectories under /mnt/backup for the next 5 days."
},
{
"role": "assistant",
"content": "#!/usr/bin/en... | script | for |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Fail fast if any of DB_HOST, ENV, REDIS_URL is unset — write it as a bash guard."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset ... | script | env |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Write a small script that checks whether backup.zip exists and is non-empty, printing an appropriate message."
},
{
"role": "assistant",
"conten... | script | if |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Download https://proxy.local/file.zip and save it with its remote name."
},
{
"role": "assistant",
"content": "curl -O https://proxy.local/file.zip"
}
] | single | curl |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Rank the values of column 1 in report.tsv by frequency, highest first, top 20 only."
},
{
"role": "assistant",
"content": "cut -d, -f1 report.tsv | sort | uniq -c |... | pipeline | cut |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "List the 10 largest subdirectories of public."
},
{
"role": "assistant",
"content": "du -h public/* 2>/dev/null | sort -rh | head -n 10"
}
] | pipeline | du |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Find all .yaml files under /data/uploads and delete them. (Careful: destructive.)"
},
{
"role": "assistant",
"content": "find /data/uploads -typ... | pipeline | find |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Delete notes.js but ask for confirmation first."
},
{
"role": "assistant",
"content": "rm -i notes.js"
}
] | single | rm |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "extract all the 'name' fields from https://web01.example.org/api/users"
},
{
"role": "assistant",
"content": "curl -s https://web01.example.org/... | pipeline | curl |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "resume an interrupted download of https://backup.corp.net/big.iso"
},
{
"role": "assistant",
"content": "wget -c https://backup.corp.net/big.iso"... | single | wget |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Given changelog.md, sort it and drop duplicate lines."
},
{
"role": "assistant",
"content": "cat changelog.md | sort -u"
}
] | pipeline | sort |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Back up /srv/data to /srv/backup as a dated xz archive, pruning all but the last 14 backups."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bas... | script | tar |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "recursively search lib for 'warning:' and show line numbers"
},
{
"role": "assistant",
"content": "grep -rn 'warning:' lib"
}
] | single | grep |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "locate files under /etc/nginx modified in the last 90 days"
},
{
"role": "assistant",
"content": "find /etc/nginx -type f -mtime -90"
}
] | single | find |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Write me a script that dumps every MySQL database into its own gzip file under /mnt/backup, keeping 7 days."
},
{
"role": "assistant",
"content": "#!/usr/bin/env ba... | script | mysqldump |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Retry curl to https://mail.example.com/health at most 10 times with a 2-second backoff, failing loudly if it never succeeds."
},
{
"role": "assistant",
... | script | curl |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Make a backup copy of test.old called test.old.bak"
},
{
"role": "assistant",
"content": "cp test.old test.old.bak"
}
] | single | cp |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Write a Bash script that runs gzip on every .conf file in backups, 8 jobs in parallel."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bas... | script | xargs |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "change just the group of notes.md to users"
},
{
"role": "assistant",
"content": "sudo chgrp users notes.md"
}
] | single | chown |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Process all .cache files under logs with optipng using 4 parallel workers via xargs."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\... | script | xargs |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Rename audit.tmp to audit.tmp.old"
},
{
"role": "assistant",
"content": "mv audit.tmp audit.tmp.old"
}
] | single | mv |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Write a start/stop/restart control script for the mysql service using a case statement."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nservice=mysql\ncase \"${1:-}... | script | case |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Show just disk stats with iostat every 5s."
},
{
"role": "assistant",
"content": "iostat -d 5"
}
] | single | iostat |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Find the 5 hottest values in column 2 of app.log (by frequency)."
},
{
"role": "assistant",
"content": "awk '{print $2}' app.log | sort | uniq -... | pipeline | awk |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Append the current date to metrics.log."
},
{
"role": "assistant",
"content": "date >> metrics.log"
}
] | pipeline | redirection |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Kill all redis-server processes by name."
},
{
"role": "assistant",
"content": "pkill redis-server"
}
] | single | pkill |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Remove adjacent duplicate lines from the already-sorted event.yaml."
},
{
"role": "assistant",
"content": "uniq event.yaml"
}
] | single | uniq |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Can you write a script that dumps every MySQL database into its own gzip file under /backup, keeping 30 days?"
},
{
"role": "assistant",
"content": "#!/usr/bin/env ... | script | mysqldump |
[
{
"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 /data/uploads into a timestamped tarball under /mnt/backup and keeps only the 3 newest."
},
{
"role": "assis... | script | tar |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Count how often each column-9 value appears in report.tsv; show the 25 most common."
},
{
"role": "assistant",
"content": "cut -d, -f9 report.tsv | so... | pipeline | cut |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Can you write a script that alerts if the root filesystem is more than 85% full?"
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo ... | script | if |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Show the contents of the /home/alice directory sorted by modification time, newest first."
},
{
"role": "assistant",
"content": "ls -lt /home/alice"
... | single | ls |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Find all .gif files under /srv/data."
},
{
"role": "assistant",
"content": "find /srv/data -type f -name '*.gif'"
}
] | single | find |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "get the number of items in the JSON array at https://auth.example.org/api/items"
},
{
"role": "assistant",
"content": "curl -s https://auth.example.org/api/items | jq 'length'"
}
] | pipeline | curl |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Filter netstat for connections to or from db01.example.org."
},
{
"role": "assistant",
"content": "netstat -tn | grep db01.example.org"
}
] | single | netstat |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Read transaction.md, then sort it and drop duplicate lines — as a pipeline."
},
{
"role": "assistant",
"content": "cat transaction.md | sort -u"
}
] | pipeline | sort |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "I need a bash script that changes the owner of each file to deploy for all .zip files under /var/www."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=/var/www\n... | script | chown |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Find all .jpg files under /srv/data and delete them. (Careful: destructive.)"
},
{
"role": "assistant",
"content": "find /srv/data -type f -name '*.jpg' -print0 | x... | pipeline | find |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "In sales.csv, which 5 values of column 9 occur most often?"
},
{
"role": "assistant",
"content": "cut -d, -f9 sales.csv | sort | uniq -c | sort -... | pipeline | cut |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Help me count how many tmux processes are running."
},
{
"role": "assistant",
"content": "pgrep -c tmux"
}
] | pipeline | pgrep |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Count how many times each line appears in customer.csv, most frequent first."
},
{
"role": "assistant",
"content": "sort customer.csv | uniq -c | sort -nr"
}
] | pipeline | sort |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Create the media directory if needed and then cd into it."
},
{
"role": "assistant",
"content": "mkdir -p media && cd media"
}
] | pipeline | chain |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Create a script that accepts --level (-l), --dir (-d) and --output (-o) via getopts, with a usage message."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nlevel=\"\... | script | getopts |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Write me a script that categorizes a filename by extension using case (is a .log an image, archive, doc?)."
},
{
"role": "assistant",
"content":... | script | case |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "download https://cache.internal/list.txt and count the lines"
},
{
"role": "assistant",
"content": "curl -s https://cache.internal/list.txt | wc -l"
... | pipeline | curl |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "I need to follow the memcached journal but only show lines mentioning 'warning:'."
},
{
"role": "assistant",
"content": "journalctl -u memcached -f | grep --line-bu... | pipeline | journalctl |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Show the 10 largest subdirectories in artifacts."
},
{
"role": "assistant",
"content": "du -h artifacts/* | sort -rh | head -n 10"
}
] | pipeline | du |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Read access.csv, then count each unique line, most common first — as a pipeline."
},
{
"role": "assistant",
"content": "cat access.csv | sort | u... | pipeline | uniq |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "strip leading whitespace from every line of invoice.txt and save to clean.txt"
},
{
"role": "assistant",
"content": "sed 's/^[[:space:]]*//' invoice.t... | pipeline | sed |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Find the most recently modified file in /home/deploy."
},
{
"role": "assistant",
"content": "ls -t /home/deploy | head -n 1"
}
] | pipeline | ls |
[
{
"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 4 of syslog?"
},
{
"role": "assistant",
"content": "cut -d, -f4 syslog | sort | uniq -c | sort -nr ... | pipeline | cut |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Make payload.css executable."
},
{
"role": "assistant",
"content": "chmod +x payload.css"
}
] | single | chmod |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Run 'rsync -a /data /mnt/backup' at higher priority (nice -5); needs root."
},
{
"role": "assistant",
"content": "sudo nice -n -5 rsync -a /data ... | single | nice |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Run the backup script, sending stdout and stderr to auth.log."
},
{
"role": "assistant",
"content": "./backup.sh > auth.log 2>&1"
}
] | pipeline | redirection |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Is the haproxy service currently active?"
},
{
"role": "assistant",
"content": "systemctl is-active haproxy"
}
] | single | systemctl |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Copy debug.txt into the templates directory."
},
{
"role": "assistant",
"content": "cp debug.txt templates/"
}
] | single | cp |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Write a small script that watches fixtures and prints a message whenever the file count changes."
},
{
"role": "assistant",
"content": "#!/usr/bin/env... | script | while |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Parse command-line flags -c (count), -p (port) and -i (input) using getopts and validate that -c is provided."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ncount=... | script | getopts |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Fail fast if any of ENV, PORT, API_KEY is unset — write it as a bash guard."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo... | script | env |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "I need getopts handling for three options: -c, -t and -l; print usage on bad input."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -e... | script | getopts |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Back up /opt/app to /data/backup as a dated bzip2 archive, pruning all but the last 14 backups."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nsrc=/opt/app\ndest=/... | script | tar |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Make a backup copy of test.gz called test.gz.bak"
},
{
"role": "assistant",
"content": "cp test.gz test.gz.bak"
}
] | single | cp |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Create a script that categorizes a filename by extension using case (is a .pdf an image, archive, doc?)."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\... | script | case |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Help me list the PIDs of containerd sorted by memory use."
},
{
"role": "assistant",
"content": "ps -C containerd -o pid=,rss= --sort=-rss"
}
] | pipeline | ps |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "I need a script that pre-creates dated subdirectories under /var/backups for the next 30 days."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nbase=/var/backups\nfo... | script | for |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Count how many lines in output.log match 'stale'."
},
{
"role": "assistant",
"content": "grep -c 'stale' output.log"
}
] | single | grep |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "What are the disk usage of include broken down one level deep?"
},
{
"role": "assistant",
"content": "du -h --max-depth=1 include 2>/dev/null | s... | pipeline | du |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Fetch JSON from https://github.com/api/users and pretty-print it with jq."
},
{
"role": "assistant",
"content": "curl -s https://github.com/api/... | pipeline | curl |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Clean up cache: remove .bak files not modified in 14 days, recording each deletion."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\ns... | script | find |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "I need a bash script that prints the line count of each file for all .csv files under /var/www."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo... | script | wc |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Find empty files in assets."
},
{
"role": "assistant",
"content": "find assets -type f -empty"
}
] | single | find |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.