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": "Give me a script that iterates over /home/deploy/*.gif and makes a .bak copy of each file." }, { "role": "assistant", "content": "#!/usr/bin/env bash\...
script
cp
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "kill every process listening on port 25" }, { "role": "assistant", "content": "lsof -ti :25 | xargs -r kill -9" } ]
pipeline
xargs
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show me how to list the unique 'traceback' messages in output.log." }, { "role": "assistant", "content": "grep 'traceback' output.log | sort -u" } ]
pipeline
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Find 'overflow' in scheduler.log plus 3 lines of context around each match." }, { "role": "assistant", "content": "grep -C 3 'overflow' scheduler.log" } ]
single
grep
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "List the 20 biggest files under cache." }, { "role": "assistant", "content": "find cache -type f -printf '%s %p\\n' 2>/dev/null | sort -rn | head -n 2...
pipeline
find
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show kernel messages from the kern facility." }, { "role": "assistant", "content": "dmesg -f kern" } ]
single
dmesg
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Update the modification time of access.css to now." }, { "role": "assistant", "content": "touch access.css" } ]
single
touch
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Give me an init-style dispatcher for the grafana-server service with case on $1." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nsvc=...
script
case
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Loop through the .js files in logs and changes the owner of each file to deploy — write it as a proper script." }, { "role": "assistant", "conten...
script
chown
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Find the most recently modified file in /home/alice." }, { "role": "assistant", "content": "ls -t /home/alice | head -n 1" } ]
pipeline
ls
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "I need a script that deletes .cache files older than 1 days from cache and logs what it removed." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ntarget=cache\nage=1...
script
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Find files in data owned by bob." }, { "role": "assistant", "content": "find data -type f -user bob" } ]
single
find
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Rank the values of column 5 in metrics.csv by frequency, highest first, top 20 only." }, { "role": "assistant", "content": "cut -d, -f5 metrics.c...
pipeline
cut
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "strip leading whitespace from every line of request.txt and save to clean.txt" }, { "role": "assistant", "content": "sed 's/^[[:space:]]*//' req...
pipeline
sed
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "From products.csv, list the 5 most frequent field-2 entries with their counts." }, { "role": "assistant", "content": "cut -d, -f2 products.csv | sort ...
pipeline
cut
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "get the number of items in the JSON array at https://www.example.com/api/items" }, { "role": "assistant", "content": "curl -s https://www.example.com/api/items | jq 'length'" } ]
pipeline
curl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show a recursive listing of dist." }, { "role": "assistant", "content": "ls -R dist" } ]
single
ls
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show what user mysql is currently doing." }, { "role": "assistant", "content": "w mysql" } ]
single
w
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "delete all blank lines from schema.csv" }, { "role": "assistant", "content": "sed '/^$/d' schema.csv" } ]
single
sed
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Read the CSV sales.csv field by field (id,name,email) with a while loop and print a greeting." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo p...
script
while
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show the top 5 most frequent values in field 1 of the whitespace-separated file dmesg.log." }, { "role": "assistant", "content": "awk '{print $1}' dme...
pipeline
awk
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Give me a frequency tally of column 2 in request.log and show the 5 biggest." }, { "role": "assistant", "content": "awk '{print $2}' request.log | sor...
pipeline
awk
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Which processes have files open in /home/deploy?" }, { "role": "assistant", "content": "lsof +D /home/deploy" } ]
single
lsof
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Count how many unique IP-like first fields appear in cron.log." }, { "role": "assistant", "content": "awk '{print $1}' cron.log | sort | uniq -c...
pipeline
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Take order.txt and count each unique line, most common first." }, { "role": "assistant", "content": "cat order.txt | sort | uniq -c | sort -nr" } ]
pipeline
uniq
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Run the backup script, sending stdout and stderr to messages." }, { "role": "assistant", "content": "./backup.sh > messages 2>&1" } ]
pipeline
redirection
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show the top 20 most frequent values in field 5 of the whitespace-separated file products.tsv." }, { "role": "assistant", "content": "awk '{print...
pipeline
awk
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Take report.tsv and count the lines." }, { "role": "assistant", "content": "cat report.tsv | wc -l" } ]
pipeline
wc
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Replace every occurrence of 'false' with 'DELETE' in release.tsv and print the result." }, { "role": "assistant", "content": "sed 's/false/DELETE/g' r...
single
sed
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a Bash script that reads a yes/no answer and handles Y/y/yes and N/n/no with a case statement." }, { "role": "assistant", "content": "#!/usr/bin...
script
case
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Show me the 20 biggest files under /etc/apache2." }, { "role": "assistant", "content": "find /etc/apache2 -type f -printf '%s %p\\n' 2>/dev/null | sort -rn | head -n 20" } ]
pipeline
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "send a GET request to https://staging.example.org/api and show the response headers" }, { "role": "assistant", "content": "curl -I https://staging.example.org/api" } ]
single
curl
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "How do I 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 Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Start 'rsync -a /data /mnt/backup' with nice value 15 so it doesn't hog the CPU." }, { "role": "assistant", "content": "nice -n 15 rsync -a /data /mnt/backup" } ]
single
nice
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Set auth.txt to permissions 644." }, { "role": "assistant", "content": "chmod 644 auth.txt" } ]
single
chmod
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Create the logs directory if needed and then cd into it." }, { "role": "assistant", "content": "mkdir -p logs && cd logs" } ]
pipeline
chain
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Fail fast if any of DB_PASS, DB_HOST, AWS_REGION is unset — write it as a bash guard." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nfor var in DB_PASS DB_HOST AWS...
script
env
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Write a Bash script that runs optipng on every .py file in logs, 4 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": "On this box, list the top 20 remote IPs by number of connections." }, { "role": "assistant", "content": "ss -tn | awk 'NR>1 {print $5}' | cut -d...
pipeline
ss
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "I/O stats in MB/s every 3s for 20 samples." }, { "role": "assistant", "content": "iostat -m 3 20" } ]
single
iostat
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Create the dist directory if needed and then cd into it." }, { "role": "assistant", "content": "mkdir -p dist && cd dist" } ]
pipeline
chain
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Write a script that deletes .gz files older than 10 days from /var/log and logs what it removed." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -eu...
script
find
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "move all .css files into the artifacts directory" }, { "role": "assistant", "content": "mv *.css artifacts/" } ]
single
mv
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Launch 'tar -czf backup.tar.gz /home/deploy' at reduced priority (1)." }, { "role": "assistant", "content": "nice -n 1 tar -czf backup.tar.gz /home/deploy" } ]
single
nice
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Poll disk usage every 10 seconds; warn a single time when it first exceeds 95%." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo p...
script
while
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Count how many lines in api.log match 'throttled'." }, { "role": "assistant", "content": "grep -c 'throttled' api.log" } ]
single
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Find the most recently modified file in /srv/www." }, { "role": "assistant", "content": "ls -t /srv/www | head -n 1" } ]
pipeline
ls
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Take export.json and count the lines." }, { "role": "assistant", "content": "cat export.json | wc -l" } ]
pipeline
wc
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "For results.md, determine what kind of file it is." }, { "role": "assistant", "content": "file results.md" } ]
single
file
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Run iostat every 3s for 5 reports." }, { "role": "assistant", "content": "iostat 3 5" } ]
single
iostat
[ { "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 ingest.log." }, { "role": "assistant", "content": "./backup.sh > ingest.log 2>&1" } ]
pipeline
redirection
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Print app.log starting from line 15 to the end." }, { "role": "assistant", "content": "tail -n +15 app.log" } ]
single
tail
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Use a while loop to print the numbers 1 to 20, but only the even ones." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ni=2\nmax=20\nwhile [ \"$i\" -le \"$max\" ]; d...
script
while
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "I need to list the unique 'deprecated' messages in error.log." }, { "role": "assistant", "content": "grep 'deprecated' error.log | sort -u" } ]
pipeline
grep
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "What is nginx running right now?" }, { "role": "assistant", "content": "w nginx" } ]
single
w
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Check the status of grafana-server." }, { "role": "assistant", "content": "systemctl status grafana-server" } ]
single
systemctl
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Copy server.bak to media/ but keep the original timestamps and permissions." }, { "role": "assistant", "content": "cp -p server.bak media/" } ]
single
cp
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "I want a cleanup script for cache that purges .log files older than 1 days." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ntarget=ca...
script
find
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "replace tabs with commas in server.txt and write to server.txt.csv" }, { "role": "assistant", "content": "sed 's/\\t/,/g' server.txt > server.txt.csv" } ]
pipeline
sed
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Make a backup copy of manifest.xml called manifest.xml.bak" }, { "role": "assistant", "content": "cp manifest.xml manifest.xml.bak" } ]
single
cp
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Write me a script that alerts if the root filesystem is more than 80% full." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo ...
script
if
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "strip leading whitespace from every line of users.md and save to clean.txt" }, { "role": "assistant", "content": "sed 's/^[[:space:]]*//' users.m...
pipeline
sed
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Print column 1 of the comma-separated file data.csv." }, { "role": "assistant", "content": "awk -F, '{print $1}' data.csv" } ]
single
awk
[ { "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 metrics.log." }, { "role": "assistant", "content": "awk -F, '{print $1}' metrics.log" } ]
single
awk
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Find the biggest files under templates." }, { "role": "assistant", "content": "du -ah templates | sort -rh | head -n 20" } ]
pipeline
du
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Write a script that verifies the environment variables ENV, DB_PASS and PORT are all set before running." }, { "role": "assistant", "content": "#!/usr/bin/env bash\...
script
env
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Please count the lines in payment.css." }, { "role": "assistant", "content": "wc -l payment.css" } ]
single
wc
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Poll disk usage every 10 seconds; warn a single time when it first exceeds 75%." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nlimit...
script
while
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Read index.tsv, then count the lines — as a pipeline." }, { "role": "assistant", "content": "cat index.tsv | wc -l" } ]
pipeline
wc
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Tally how many times each log level appears in auth.log." }, { "role": "assistant", "content": "grep -oE '(INFO|WARN|ERROR|DEBUG)' auth.log | sort | u...
pipeline
grep
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Count error lines in the redis journal since yesterday." }, { "role": "assistant", "content": "journalctl -u redis --since yesterday | grep -ic ...
pipeline
journalctl
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "How many lines in nginx-access.log mention 'disk full'?" }, { "role": "assistant", "content": "grep -c 'disk full' nginx-access.log | cat" } ]
pipeline
grep
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "extract all the 'name' fields from https://www.example.com/api/users" }, { "role": "assistant", "content": "curl -s https://www.example.com/api/users ...
pipeline
curl
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Loop through the .gif files in /mnt/storage and prints the line count of each file — write it as a proper script." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndi...
script
wc
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Back up /srv/data to /backup as a dated gzip archive, pruning all but the last 5 backups." }, { "role": "assistant", "content": "#!/usr/bin/env ...
script
tar
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a script that dumps every PostgreSQL database into its own gzip file under /backup, keeping 7 days." }, { "role": "assistant", "content": "#!/us...
script
pg_dump
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "On the file transaction.js, show the first 20 lines." }, { "role": "assistant", "content": "head -n 20 transaction.js" } ]
single
head
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Take access.csv and count the lines." }, { "role": "assistant", "content": "cat access.csv | wc -l" } ]
pipeline
wc
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Print even numbers up to 10 with a while loop and a counter." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ni=2\nmax=1...
script
while
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write a loop that restarts these services in order: memcached firewalld ssh." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nfor svc in memcached firewalld ssh; do\...
script
for
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Determine what kind of file it is of credentials.txt." }, { "role": "assistant", "content": "file credentials.txt" } ]
single
file
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Restart cron docker sshd one after another and report each result." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nfor svc in cron docker sshd; do\n if sudo system...
script
for
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Update the modification time of invoice.png to now." }, { "role": "assistant", "content": "touch invoice.png" } ]
single
touch
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Take product.csv and convert everything to uppercase." }, { "role": "assistant", "content": "cat product.csv | tr 'a-z' 'A-Z'" } ]
pipeline
tr
[ { "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://app01.internal/api/items" }, { "role": "assistant", "content": "curl -s https://app01.internal/api/items | jq '...
pipeline
curl
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "extract backup.tar.gz into the tests folder" }, { "role": "assistant", "content": "tar -xzf backup.tar.gz -C tests" } ]
single
tar
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Find all .conf files under static and delete them. (Careful: destructive.)" }, { "role": "assistant", "content": "find static -type f -name '*.c...
pipeline
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Parse command-line flags -n (name), -d (dir) and -t (tag) using getopts and validate that -n is provided." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nname=\"\";...
script
getopts
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "make a bzip2-compressed tarball of images" }, { "role": "assistant", "content": "tar -cjf images.tar.bz2 images" } ]
single
tar
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "I need a preflight check that AWS_REGION, ENV and API_KEY exist in the environment." }, { "role": "assistant", "content": "#!/usr/bin/env bash\ns...
script
env
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Count total lines across all .csv files in /var/lib/mysql." }, { "role": "assistant", "content": "find /var/lib/mysql -type f -name '*.csv' -print0 | xargs -0 cat |...
pipeline
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "list only the .md files in static" }, { "role": "assistant", "content": "ls static | grep '\\.md$'" } ]
pipeline
ls
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show the parent chain leading to PID 3858." }, { "role": "assistant", "content": "pstree -s 3858" } ]
single
pstree
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "From index.md, count each unique line, most common first." }, { "role": "assistant", "content": "cat index.md | sort | uniq -c | sort -nr" } ]
pipeline
uniq
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "POST a JSON body to https://172.16.0.20/api/users" }, { "role": "assistant", "content": "curl -X POST -H 'Content-Type: application/json' -d '{\"name\...
single
curl
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show the 10 largest subdirectories in uploads." }, { "role": "assistant", "content": "du -h uploads/* | sort -rh | head -n 10" } ]
pipeline
du
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "delete all blank lines from response.yaml" }, { "role": "assistant", "content": "sed '/^$/d' response.yaml" } ]
single
sed
[ { "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 /etc/nginx." }, { "role": "assistant", "content": "find /etc/nginx -type f -printf '%s %p\\n' 2>/dev/null | so...
pipeline
find
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "On the file sales.conf, print it with line numbers." }, { "role": "assistant", "content": "nl sales.conf" } ]
single
nl
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "give the owner rwx and everyone else read on dump.tmp" }, { "role": "assistant", "content": "chmod 744 dump.tmp" } ]
single
chmod