messages
listlengths
3
3
category
stringclasses
3 values
utility
stringclasses
89 values
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "I need a bash script that makes a .bak copy of each file for all .jpg files under /home/alice." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=/home/alice\nfor ...
script
cp
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show the 10 largest subdirectories in /opt/app." }, { "role": "assistant", "content": "du -h /opt/app/* | sort -rh | head -n 10" } ]
pipeline
du
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Watch memory continuously, updating every 3s." }, { "role": "assistant", "content": "free -h -s 3" } ]
single
free
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Count total lines across all .json files in build." }, { "role": "assistant", "content": "find build -type f -name '*.json' -print0 | xargs -0 cat | w...
pipeline
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "print lines of metrics.log where column 3 is greater than 100" }, { "role": "assistant", "content": "awk '$3 > 100' metrics.log" } ]
single
awk
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Rename request.log to request.log.old" }, { "role": "assistant", "content": "mv request.log request.log.old" } ]
single
mv
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Ping cdn.corp.net once and branch: print reachable or unreachable based on the result." }, { "role": "assistant", "content": "#!/usr/bin/env bash...
script
if
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Given dump.tsv, sort it and drop duplicate lines." }, { "role": "assistant", "content": "cat dump.tsv | sort -u" } ]
pipeline
sort
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Poll memory in MB every 2s, 3 times." }, { "role": "assistant", "content": "free -m -s 2 -c 3" } ]
single
free
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Given notes.json, count the lines." }, { "role": "assistant", "content": "cat notes.json | wc -l" } ]
pipeline
wc
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Create a script that retries a curl to https://www.example.org/health up to 5 times with a 2-second backoff." }, { "role": "assistant", "content...
script
retry
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Sum up the values in column 1 of data.csv." }, { "role": "assistant", "content": "awk '{sum+=$1} END{print sum}' data.csv" } ]
single
awk
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "check the type of every file in scripts" }, { "role": "assistant", "content": "file scripts/*" } ]
single
file
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "I need to list the unique 'panic' messages in access.log." }, { "role": "assistant", "content": "grep 'panic' access.log | sort -u" } ]
pipeline
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "In cron.log, which 25 values of column 7 occur most often?" }, { "role": "assistant", "content": "awk '{print $7}' cron.log | sort | uniq -c | sort -nr | head -n 25...
pipeline
awk
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "How do I list the PIDs of tmux sorted by memory use?" }, { "role": "assistant", "content": "ps -C tmux -o pid=,rss= --sort=-rss" } ]
pipeline
ps
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Show the contents of the data directory sorted by modification time, newest first." }, { "role": "assistant", "content": "ls -lt data" } ]
single
ls
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write a small script that watches include and prints a message whenever the file count changes." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=include\nprev=$(...
script
while
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Print even numbers up to 100 with a while loop and a counter." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ni=2...
script
while
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Find the 5 hottest values in column 3 of build.log (by frequency)." }, { "role": "assistant", "content": "awk '{print $3}' build.log | sort | uniq -c | sort -nr | head -n 5" } ]
pipeline
awk
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Parse command-line flags -l (level), -i (input) and -d (dir) using getopts and validate that -l is provided." }, { "role": "assistant", "content": "#!...
script
getopts
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Check if access.md exists and cat it, otherwise say it's missing." }, { "role": "assistant", "content": "[ -f access.md ] && cat access.md || echo 'no...
pipeline
chain
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "List the 10 biggest files under templates." }, { "role": "assistant", "content": "find templates -type f -printf '%s %p\\n' 2>/dev/null | sort -rn | head -n 10" }...
pipeline
find
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Rename transaction.bak to transaction.bak.old without overwriting if the target already exists." }, { "role": "assistant", "content": "mv -n tran...
single
mv
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Back up /home/alice to /backup as a dated xz archive, pruning all but the last 30 backups." }, { "role": "assistant", "content": "#!/usr/bin/env bash\...
script
tar
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Show the first 3 lines of gc.log." }, { "role": "assistant", "content": "head -n 3 gc.log" } ]
single
head
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Sort release.json numerically in reverse order." }, { "role": "assistant", "content": "sort -nr release.json" } ]
single
sort
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show the shells in use and how many users have each." }, { "role": "assistant", "content": "cut -d: -f7 /etc/passwd | sort | uniq -c | sort -nr" ...
pipeline
cut
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Sample free 5 times at 3-second intervals in megabytes." }, { "role": "assistant", "content": "free -m -s 3 -c 5" } ]
single
free
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Check if report.conf exists and cat it, otherwise say it's missing." }, { "role": "assistant", "content": "[ -f report.conf ] && cat report.conf || echo 'not found'...
pipeline
chain
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Rename summary.tar.gz to summary.tar.gz.old" }, { "role": "assistant", "content": "mv summary.tar.gz summary.tar.gz.old" } ]
single
mv
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "which directories under public are eating the most space?" }, { "role": "assistant", "content": "du -h --max-depth=1 public | sort -rh" } ]
pipeline
du
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Write a script that deletes .cache files older than 10 days from uploads and logs what it removed." }, { "role": "assistant", "content": "#!/usr...
script
find
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Copy report.gz into the dist directory." }, { "role": "assistant", "content": "cp report.gz dist/" } ]
single
cp
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Run vmstat every 1s and stop after 5 samples." }, { "role": "assistant", "content": "vmstat 1 5" } ]
single
vmstat
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "move all .old files into the templates directory" }, { "role": "assistant", "content": "mv *.old templates/" } ]
single
mv
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Rename catalog.log to catalog.log.old without overwriting if the target already exists." }, { "role": "assistant", "content": "mv -n catalog.log ...
single
mv
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Clean up /var/log: remove .tmp files not modified in 1 days, recording each deletion." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset ...
script
find
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Write me a script that runs optipng on every .gz file in /home/alice, 2 jobs in parallel." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipef...
script
xargs
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Fetch JSON from https://cdn.internal/api/users and pretty-print it with jq." }, { "role": "assistant", "content": "curl -s https://cdn.internal/...
pipeline
curl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Print column 4 of the comma-separated file metrics.log." }, { "role": "assistant", "content": "awk -F, '{print $4}' metrics.log" } ]
single
awk
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Download https://auth.service.io/file.zip and save it with its remote name." }, { "role": "assistant", "content": "curl -O https://auth.service....
single
curl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "move all .zip files into the vendor directory" }, { "role": "assistant", "content": "mv *.zip vendor/" } ]
single
mv
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Create the downloads directory if needed and then cd into it." }, { "role": "assistant", "content": "mkdir -p downloads && cd downloads" } ]
pipeline
chain
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "recursively search uploads for 'invalid' and show line numbers" }, { "role": "assistant", "content": "grep -rn 'invalid' uploads" } ]
single
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "I want a cleanup script for uploads that purges .tmp files older than 10 days." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ntarget...
script
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "From credentials.conf, show the last 15 lines." }, { "role": "assistant", "content": "cat credentials.conf | tail -n 15" } ]
pipeline
tail
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Print everything in nginx-error.log except the last 100 lines." }, { "role": "assistant", "content": "head -n -100 nginx-error.log" } ]
single
head
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show detailed per-device iostat, 3s apart, 3 times." }, { "role": "assistant", "content": "iostat -x 3 3" } ]
single
iostat
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Remove write permission for group and others on customer.css." }, { "role": "assistant", "content": "chmod go-w customer.css" } ]
single
chmod
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "strip leading whitespace from every line of response.tsv and save to clean.txt" }, { "role": "assistant", "content": "sed 's/^[[:space:]]*//' response.tsv > clean.txt" } ]
pipeline
sed
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Print all environment variables." }, { "role": "assistant", "content": "env" } ]
single
env
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Clean up /var/cache: remove .tmp files not modified in 180 days, recording each deletion." }, { "role": "assistant", "content": "#!/usr/bin/env b...
script
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write me a script that dumps every MySQL database into its own gzip file under /data/backup, keeping 10 days." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndest=/...
script
mysqldump
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Copy manifest.zip into the lib directory." }, { "role": "assistant", "content": "cp manifest.zip lib/" } ]
single
cp
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Parse command-line flags -t (tag), -l (level) and -o (output) using getopts and validate that -t is provided." }, { "role": "assistant", "conten...
script
getopts
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "list only the .css files in /var/lib/mysql" }, { "role": "assistant", "content": "ls /var/lib/mysql | grep '\\.css$'" } ]
pipeline
ls
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "which directories under build are eating the most space?" }, { "role": "assistant", "content": "du -h --max-depth=1 build | sort -rh" } ]
pipeline
du
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Recursively set owner and group of src to backup:staff." }, { "role": "assistant", "content": "sudo chown -R backup:staff src" } ]
single
chown
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Count 'invalid' occurrences in the fail2ban journal today." }, { "role": "assistant", "content": "journalctl -u fail2ban --since today --no-pager | grep -c 'invalid...
pipeline
journalctl
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "How many lines in app.log mention 'permission denied'?" }, { "role": "assistant", "content": "grep -c 'permission denied' app.log | cat" } ]
pipeline
grep
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write me a script that checks whether mysqld is running and starts it if not." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pip...
script
if
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "How do I show the top 15 processes by memory?" }, { "role": "assistant", "content": "ps aux --sort=-%mem | head -n 16" } ]
pipeline
ps
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Print uptime -p." }, { "role": "assistant", "content": "uptime -p" } ]
single
uptime
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "give me a human-readable long listing of cache" }, { "role": "assistant", "content": "ls -lh cache" } ]
single
ls
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Find files in cache owned by carol." }, { "role": "assistant", "content": "find cache -type f -user carol" } ]
single
find
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Make output.bak executable." }, { "role": "assistant", "content": "chmod +x output.bak" } ]
single
chmod
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "How do I list files in config sorted by size?" }, { "role": "assistant", "content": "ls -lS config" } ]
single
ls
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Write a loop that restarts these services in order: haproxy apache2 redis." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nfor svc in...
script
for
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Copy event.jpg to tmp/ but keep the original timestamps and permissions." }, { "role": "assistant", "content": "cp -p event.jpg tmp/" } ]
single
cp
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Check if data.js exists and cat it, otherwise say it's missing." }, { "role": "assistant", "content": "[ -f data.js ] && cat data.js || echo 'not found'" } ]
pipeline
chain
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Find directories named modules anywhere under /var/lib/mysql." }, { "role": "assistant", "content": "find /var/lib/mysql -type d -name 'modules'...
single
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Tally how many times each log level appears in messages." }, { "role": "assistant", "content": "grep -oE '(INFO|WARN|ERROR|DEBUG)' messages | sort | u...
pipeline
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Parse command-line flags -o (output), -c (count) and -t (tag) using getopts and validate that -o is provided." }, { "role": "assistant", "content": "#!/usr/bin/env ...
script
getopts
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Show the contents of the /var/cache directory sorted by modification time, newest first." }, { "role": "assistant", "content": "ls -lt /var/cach...
single
ls
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "What are the 10 largest subdirectories of images?" }, { "role": "assistant", "content": "du -h images/* 2>/dev/null | sort -rh | head -n 10" } ]
pipeline
du
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "List connections using port 2379 as source or destination." }, { "role": "assistant", "content": "ss -tn 'sport = :2379 or dport = :2379'" } ]
single
ss
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show me the 10 largest subdirectories of modules." }, { "role": "assistant", "content": "du -h modules/* 2>/dev/null | sort -rh | head -n 10" } ]
pipeline
du
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "download https://db01.internal/list.txt and count the lines" }, { "role": "assistant", "content": "curl -s https://db01.internal/list.txt | wc -l" } ]
pipeline
curl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Give me a script that iterates over /srv/data/*.log and makes each file read-only." }, { "role": "assistant", "content": "#!/usr/bin/env bash\ns...
script
chmod
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Copy users.py into docs only if it's newer than what's there." }, { "role": "assistant", "content": "cp -u users.py docs/" } ]
single
cp
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Back up /opt/app to /backup as a dated bzip2 archive, pruning all but the last 7 backups." }, { "role": "assistant", "content": "#!/usr/bin/env b...
script
tar
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Count total lines across all .zip files in templates." }, { "role": "assistant", "content": "find templates -type f -name '*.zip' -print0 | xargs -0 cat | wc -l" ...
pipeline
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Recursively make everything in templates readable and writable by the owner only." }, { "role": "assistant", "content": "chmod -R 600 templates" } ]
single
chmod
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a one-liner to list the top 5 remote IPs by number of connections." }, { "role": "assistant", "content": "ss -tn | awk 'NR>1 {print $5}' | cut -...
pipeline
ss
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "List the files opened by process 3457." }, { "role": "assistant", "content": "lsof -p 3457" } ]
single
lsof
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Parse command-line flags -n (name), -o (output) and -t (tag) using getopts and validate that -n is provided." }, { "role": "assistant", "content...
script
getopts
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Find the most recently modified file in static." }, { "role": "assistant", "content": "ls -t static | head -n 1" } ]
pipeline
ls
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Create the data directory if needed and then cd into it." }, { "role": "assistant", "content": "mkdir -p data && cd data" } ]
pipeline
chain
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "display response.json showing tabs and line endings" }, { "role": "assistant", "content": "cat -A response.json" } ]
single
cat
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "From account.conf, convert everything to uppercase." }, { "role": "assistant", "content": "cat account.conf | tr 'a-z' 'A-Z'" } ]
pipeline
tr
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Copy invoice.md to build/ but keep the original timestamps and permissions." }, { "role": "assistant", "content": "cp -p invoice.md build/" } ]
single
cp
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Print only lines 10 through 20 of invoice.md." }, { "role": "assistant", "content": "sed -n '10,20p' invoice.md" } ]
single
sed
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Check whether mongod is running and exit 0 if so, 1 otherwise, with a message." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nproc=m...
script
if
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Clean up /var/log: remove .old files not modified in 21 days, recording each deletion." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset...
script
find
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "What are the 5 biggest files under images?" }, { "role": "assistant", "content": "find images -type f -printf '%s %p\\n' 2>/dev/null | sort -rn ...
pipeline
find
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "What's bound to port 6379?" }, { "role": "assistant", "content": "lsof -i :6379" } ]
single
lsof
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Create a script that deletes .gz files older than 60 days from logs and logs what it removed." }, { "role": "assistant", "content": "#!/usr/bin/...
script
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a Bash script that checks a list of required commands (git, curl, jq) are installed before continuing." }, { "role": "assistant", "content": "#!...
script
command
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "How many lines in cron.log mention 'denied'?" }, { "role": "assistant", "content": "grep -c 'denied' cron.log | cat" } ]
pipeline
grep