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 the owner rwx and everyone else read on changelog.conf"
},
{
"role": "assistant",
"content": "chmod 744 changelog.conf"
}
] | single | chmod |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "strip leading whitespace from every line of order.yaml and save to clean.txt"
},
{
"role": "assistant",
"content": "sed 's/^[[:space:]]*//' order.yaml > clean.txt"
... | pipeline | sed |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "download https://staging.corp.net/list.txt and count the lines"
},
{
"role": "assistant",
"content": "curl -s https://staging.corp.net/list.txt | wc -l"
}
] | pipeline | curl |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Find all .js files under data and delete them. (Careful: destructive.)"
},
{
"role": "assistant",
"content": "find data -type f -name '*.js' -print0 | xargs -0 rm -f"
}
] | pipeline | find |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Parse command-line flags -t (tag), -p (port) and -i (input) using getopts and validate that -t is provided."
},
{
"role": "assistant",
"content": "#!/usr/bin/env ba... | script | getopts |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Write a shell script that accepts --output (-o), --input (-i) and --tag (-t) via getopts, with a usage message."
},
{
"role": "assistant",
"cont... | script | getopts |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Retry connection to proxy.internal:5432 at most 6 times with a 1-second backoff, failing loudly if it never succeeds."
},
{
"role": "assistant",
"cont... | script | bash |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Rank the values of column 1 in products.tsv by frequency, highest first, top 25 only."
},
{
"role": "assistant",
"content": "cut -d, -f1 products.tsv | sort | uniq -c | sort -nr | head -n 25"
}... | pipeline | cut |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "How do I count how many rabbitmq processes are running?"
},
{
"role": "assistant",
"content": "pgrep -c rabbitmq"
}
] | pipeline | pgrep |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Ping auth.service.io once and branch: print reachable or unreachable based on the result."
},
{
"role": "assistant",
"content": "#!/usr/bin/env b... | script | if |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Show established connections on port 5432."
},
{
"role": "assistant",
"content": "lsof -i :5432 -sTCP:ESTABLISHED"
}
] | single | lsof |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "What are 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 ... | pipeline | find |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Write me a script that accepts --output (-o), --level (-l) and --port (-p) via getopts, with a usage message."
},
{
"role": "assistant",
"conten... | script | getopts |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Count total lines across all .txt files in fixtures."
},
{
"role": "assistant",
"content": "find fixtures -type f -name '*.txt' -print0 | xargs ... | pipeline | find |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Back up all PostgreSQL databases individually to /var/backups as compressed dumps."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -eu... | script | pg_dump |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Show me the 10 biggest files under /var/cache."
},
{
"role": "assistant",
"content": "find /var/cache -type f -printf '%s %p\\n' 2>/dev/null | sort -rn | head -n 10... | pipeline | find |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Count how many files are in downloads."
},
{
"role": "assistant",
"content": "ls -1 downloads | wc -l"
}
] | pipeline | ls |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Write me a script that retries a connection to app01.internal:5432 up to 5 times, sleeping 2s between attempts."
},
{
"role": "assistant",
"cont... | script | bash |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Back up /home/deploy to /backup as a dated xz archive, pruning all but the last 14 backups."
},
{
"role": "assistant",
"content": "#!/usr/bin/en... | script | tar |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Case-insensitively find '502' in cron.log."
},
{
"role": "assistant",
"content": "grep -i '502' cron.log"
}
] | single | grep |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Write a backup script that xz-compresses /opt/app into a timestamped tarball under /backup and keeps only the 14 newest."
},
{
"role": "assistant",
"content": "#!/u... | script | tar |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Take session.json and strip trailing whitespace."
},
{
"role": "assistant",
"content": "cat session.json | sed 's/[[:space:]]*$//'"
}
] | pipeline | sed |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Total the resident memory of all vim processes in MB."
},
{
"role": "assistant",
"content": "ps -C vim -o rss= | awk '{s+=$1} END{print s/1024 \" MB\"}'"
}
] | pipeline | ps |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Change the owner of order.pdf to admin."
},
{
"role": "assistant",
"content": "sudo chown admin order.pdf"
}
] | single | chown |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "What are the 15 most common entries in column 3 of app.log?"
},
{
"role": "assistant",
"content": "cut -d, -f3 app.log | sort | uniq -c | sort -nr | head -n 15"
}
] | pipeline | cut |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Rename response.xml to response.xml.old"
},
{
"role": "assistant",
"content": "mv response.xml response.xml.old"
}
] | single | mv |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "gzip every .log file under lib"
},
{
"role": "assistant",
"content": "find lib -type f -name '*.log' -print0 | xargs -0 gzip"
}
] | pipeline | find |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "strip leading whitespace from every line of config.csv and save to clean.txt"
},
{
"role": "assistant",
"content": "sed 's/^[[:space:]]*//' config.csv... | pipeline | sed |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Process all .old files under /home/deploy with checksum with sha256sum using 4 parallel workers via xargs."
},
{
"role": "assistant",
"content": ... | script | xargs |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "cut out the first 10 characters of each line in users.txt"
},
{
"role": "assistant",
"content": "cut -c1-10 users.txt"
}
] | single | cut |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Extract just the email addresses from session.yaml."
},
{
"role": "assistant",
"content": "grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' session.yaml | ... | pipeline | sed |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Give me an init-style dispatcher for the nginx service with case on $1."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipe... | script | case |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "move all .sh files into the templates directory"
},
{
"role": "assistant",
"content": "mv *.sh templates/"
}
] | single | mv |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Count total lines across all .png files in downloads."
},
{
"role": "assistant",
"content": "find downloads -type f -name '*.png' -print0 | xarg... | pipeline | find |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "From server.md, count each unique line, most common first."
},
{
"role": "assistant",
"content": "cat server.md | sort | uniq -c | sort -nr"
}
] | pipeline | uniq |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Find 'disk full' in worker.log plus 3 lines of context around each match."
},
{
"role": "assistant",
"content": "grep -C 3 'disk full' worker.log"
}... | single | grep |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Show me the 20 largest subdirectories of vendor."
},
{
"role": "assistant",
"content": "du -h vendor/* 2>/dev/null | sort -rh | head -n 20"
}
] | pipeline | du |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "strip leading whitespace from every line of account.md and save to clean.txt"
},
{
"role": "assistant",
"content": "sed 's/^[[:space:]]*//' account.md > clean.txt"
}
] | pipeline | sed |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Check if payment.json exists and cat it, otherwise say it's missing."
},
{
"role": "assistant",
"content": "[ -f payment.json ] && cat payment.json || echo 'not found'"
}
] | pipeline | chain |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "For every immediate subdirectory of /home/deploy, show how much disk it uses."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nfor dir... | script | for |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "I need per-database MySQL backups written to /data/backup and pruned after 10 days."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\n... | script | mysqldump |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "show sshd logs from the last 1 days"
},
{
"role": "assistant",
"content": "journalctl -u sshd --since '1 days ago'"
}
] | single | journalctl |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Edit build.json in place, replacing 'inactive' with 'inactive'."
},
{
"role": "assistant",
"content": "sed -i 's/inactive/inactive/g' build.json"
}
... | single | sed |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "List only directories inside uploads."
},
{
"role": "assistant",
"content": "ls -d uploads/*/"
}
] | single | ls |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Create a gzip-compressed archive of the build directory."
},
{
"role": "assistant",
"content": "tar -czf build.tar.gz build"
}
] | single | tar |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "What are the disk usage of tmp broken down one level deep?"
},
{
"role": "assistant",
"content": "du -h --max-depth=1 tmp 2>/dev/null | sort -rh"... | pipeline | du |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Can you write a script that accepts --tag (-t), --input (-i) and --name (-n) via getopts, with a usage message?"
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ntag=... | script | getopts |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "List only directories inside /var/lib/mysql."
},
{
"role": "assistant",
"content": "ls -d /var/lib/mysql/*/"
}
] | single | ls |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Take catalog.md and keep only non-empty lines."
},
{
"role": "assistant",
"content": "cat catalog.md | grep -v '^$'"
}
] | pipeline | grep |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Take catalog.json and show the 20 longest lines."
},
{
"role": "assistant",
"content": "cat catalog.json | awk '{ print length, $0 }' | sort -rn | head -20 | cut -d... | pipeline | awk |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Remove write permission for group and others on build.bak."
},
{
"role": "assistant",
"content": "chmod go-w build.bak"
}
] | single | chmod |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Write a script that runs checksum with sha256sum on every .yaml file in /data/uploads, 4 jobs in parallel."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bas... | script | xargs |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "List the unique 'warning:' messages in nginx-error.log."
},
{
"role": "assistant",
"content": "grep 'warning:' nginx-error.log | sort -u"
}
] | pipeline | grep |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Show me the 5 biggest files under /data/uploads."
},
{
"role": "assistant",
"content": "find /data/uploads -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": "Show event.ini with line numbers."
},
{
"role": "assistant",
"content": "cat -n event.ini"
}
] | single | cat |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "From archive.ini, sort it and drop duplicate lines."
},
{
"role": "assistant",
"content": "cat archive.ini | sort -u"
}
] | pipeline | sort |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Back up all MySQL databases individually to /var/backups as compressed dumps."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ndest=/var/backups\nkeep=14\nmkdir -p \... | script | mysqldump |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Loop over every .log file in modules and gzip any that are larger than 10MB."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo... | script | for |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Write a start/stop/restart/status control script for docker using a case statement."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\n... | script | case |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Delete the first line of sales.md in place."
},
{
"role": "assistant",
"content": "sed -i '1d' sales.md"
}
] | single | sed |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Tally how many times each log level appears in debug.log."
},
{
"role": "assistant",
"content": "grep -oE '(INFO|WARN|ERROR|DEBUG)' debug.log | sort | uniq -c | sor... | pipeline | grep |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Loop over every .csv file in /var/lib/app and append its sha256 checksum to checksums.txt."
},
{
"role": "assistant",
"content": "#!/usr/bin/env ... | script | for |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Recursively make everything in build readable and writable by the owner only."
},
{
"role": "assistant",
"content": "chmod -R 600 build"
}
] | single | chmod |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "delete all blank lines from config.conf"
},
{
"role": "assistant",
"content": "sed '/^$/d' config.conf"
}
] | single | sed |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Show just the first line of metrics.pdf."
},
{
"role": "assistant",
"content": "head -n 1 metrics.pdf"
}
] | single | head |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "From export.tsv, list the 5 most frequent field-4 entries with their counts."
},
{
"role": "assistant",
"content": "awk '{print $4}' export.tsv | sort | uniq -c | sort -nr | head -n 5"
}
] | pipeline | awk |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Iterate the hosts in hosts.txt; the script pings each host once and marks each reachable or not."
},
{
"role": "assistant",
"content": "#!/usr/bi... | script | ping |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Write a Bash script that loops over every .cache file in /var/www and makes a .bak copy of each file."
},
{
"role": "assistant",
"content": "#!/u... | script | cp |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Write a shell script that runs optipng on every .sql file in /var/www, 4 jobs in parallel."
},
{
"role": "assistant",
"content": "#!/usr/bin/env ... | script | xargs |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Show what PID 3494 has open."
},
{
"role": "assistant",
"content": "lsof -p 3494"
}
] | single | lsof |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "move all .old files into the artifacts directory"
},
{
"role": "assistant",
"content": "mv *.old artifacts/"
}
] | single | mv |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Give me a frequency tally of column 7 in gateway.log and show the 10 biggest."
},
{
"role": "assistant",
"content": "awk '{print $7}' gateway.log | so... | pipeline | awk |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Count how many files are in dist."
},
{
"role": "assistant",
"content": "ls -1 dist | wc -l"
}
] | pipeline | ls |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Fetch JSON from https://db01.example.org/api/users and pretty-print it with jq."
},
{
"role": "assistant",
"content": "curl -s https://db01.example.org/api/users | ... | pipeline | curl |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "List all files in config, including hidden ones, in long format."
},
{
"role": "assistant",
"content": "ls -la config"
}
] | single | ls |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Restart the docker service."
},
{
"role": "assistant",
"content": "sudo systemctl restart docker"
}
] | single | systemctl |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "From order.json, sort it and drop duplicate lines."
},
{
"role": "assistant",
"content": "cat order.json | sort -u"
}
] | pipeline | sort |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "send a GET request to https://app01.service.io/api and show the response headers"
},
{
"role": "assistant",
"content": "curl -I https://app01.ser... | single | curl |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Set users.xml to permissions 644."
},
{
"role": "assistant",
"content": "chmod 644 users.xml"
}
] | single | chmod |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "delete all blank lines from notes.conf"
},
{
"role": "assistant",
"content": "sed '/^$/d' notes.conf"
}
] | single | sed |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Write me a script that deletes .tmp files older than 1 days from /var/log and logs what it removed."
},
{
"role": "assistant",
"content": "#!/us... | script | find |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Loop through the .sql files in /mnt/storage and makes each file read-only — write it as a proper script."
},
{
"role": "assistant",
"content": "... | script | chmod |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Check what holds port 25 with ss."
},
{
"role": "assistant",
"content": "ss -tlnp sport = :25"
}
] | single | ss |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Get the bare PID that holds port 11211."
},
{
"role": "assistant",
"content": "lsof -i :11211 -t"
}
] | single | lsof |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "I need a script that renames every .txt file in the current directory to .jpg."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nfor f ... | script | for |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Show the last 20 warning entries for mysql."
},
{
"role": "assistant",
"content": "journalctl -u mysql -p warning -n 20 --no-pager"
}
] | pipeline | journalctl |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Rename metrics.conf to metrics.conf.old"
},
{
"role": "assistant",
"content": "mv metrics.conf metrics.conf.old"
}
] | single | mv |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "replace tabs with commas in build.log and write to build.log.csv"
},
{
"role": "assistant",
"content": "sed 's/\\t/,/g' build.log > build.log.csv"
}... | pipeline | sed |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Test if order.txt is present and has content; report missing, empty, or its line count."
},
{
"role": "assistant",
"content": "#!/usr/bin/env ba... | script | if |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Recursively make everything in media readable and writable by the owner only."
},
{
"role": "assistant",
"content": "chmod -R 600 media"
}
] | single | chmod |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "I need a script that checks a list of required commands (git, curl, jq) are installed before continuing."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nrequire() {... | script | command |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "For every immediate subdirectory of backups, show how much disk it uses."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nfor dir in b... | script | for |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "search all .sql files under assets for the word TODO"
},
{
"role": "assistant",
"content": "find assets -name '*.sql' -print0 | xargs -0 grep -l TODO"
}
] | pipeline | find |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "I need a preflight check that DB_HOST, AWS_REGION and REDIS_URL exist in the environment."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\n... | script | env |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Show the total size of the lib directory in human-readable form."
},
{
"role": "assistant",
"content": "du -sh lib"
}
] | single | du |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "change permissions to 644 on all files under templates"
},
{
"role": "assistant",
"content": "find templates -type f -print0 | xargs -0 chmod 644... | pipeline | find |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "I need getopts handling for three options: -o, -n and -l; print usage on bad input."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\n... | script | getopts |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Find the biggest files under src."
},
{
"role": "assistant",
"content": "du -ah src | 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 small script that verifies the environment variables PORT, DB_HOST and DB_PASS are all set before running."
},
{
"role": "assistant",
"content": "#!/usr/bin... | script | env |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Read nodes.txt line by line, skipping comments and blanks, and echo each entry numbered."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nn=0\nwhile IFS= read -r lin... | script | while |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.