messages
listlengths
3
3
category
stringclasses
3 values
utility
stringclasses
89 values
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "download https://registry.example.com/list.txt and count the lines" }, { "role": "assistant", "content": "curl -s https://registry.example.com/li...
pipeline
curl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Print server.log starting from line 30 to the end." }, { "role": "assistant", "content": "tail -n +30 server.log" } ]
single
tail
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Search auth.log for lines containing 'TODO'." }, { "role": "assistant", "content": "grep 'TODO' auth.log" } ]
single
grep
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Can you write a script that parses -f (file), -n (count) and -v (verbose) options with getopts?" }, { "role": "assistant", "content": "#!/usr/bin...
script
getopts
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "extract backup.tar.gz into the releases folder" }, { "role": "assistant", "content": "tar -xzf backup.tar.gz -C releases" } ]
single
tar
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "change permissions to 644 on all files under docs" }, { "role": "assistant", "content": "find docs -type f -print0 | xargs -0 chmod 644" } ]
pipeline
find
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Back up /home/deploy to /srv/backup as a dated gzip archive, pruning all but the last 14 backups." }, { "role": "assistant", "content": "#!/usr/b...
script
tar
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "How do I list files in reports sorted by size?" }, { "role": "assistant", "content": "ls -lS reports" } ]
single
ls
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Make export.json executable." }, { "role": "assistant", "content": "chmod +x export.json" } ]
single
chmod
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Write a monitoring script that warns when memory usage exceeds 70%." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail...
script
free
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "reload rabbitmq without a full restart" }, { "role": "assistant", "content": "sudo systemctl reload rabbitmq" } ]
single
systemctl
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show the first 50 lines of nginx-access.log." }, { "role": "assistant", "content": "head -n 50 nginx-access.log" } ]
single
head
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "How do I list files in include sorted by size?" }, { "role": "assistant", "content": "ls -lS include" } ]
single
ls
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "check the type of every file in assets" }, { "role": "assistant", "content": "file assets/*" } ]
single
file
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Fetch JSON from https://www.corp.net/api/users and pretty-print it with jq." }, { "role": "assistant", "content": "curl -s https://www.corp.net/...
pipeline
curl
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "extract backup.tar.gz into the vendor folder" }, { "role": "assistant", "content": "tar -xzf backup.tar.gz -C vendor" } ]
single
tar
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Can you write a script that retries a connection to monitor.internal:5432 up to 5 times, sleeping 3s between attempts?" }, { "role": "assistant", "con...
script
bash
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Fetch https://db02.local/health and print only the HTTP status code." }, { "role": "assistant", "content": "curl -s -o /dev/null -w '%{http_code}...
single
curl
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Create a script that runs checksum with sha256sum on every .yaml file in /var/www, 2 jobs in parallel." }, { "role": "assistant", "content": "#!/usr/bin/env bash\ns...
script
xargs
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Rename invoice.csv to invoice.csv.old" }, { "role": "assistant", "content": "mv invoice.csv invoice.csv.old" } ]
single
mv
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Delete profile.conf but ask for confirmation first." }, { "role": "assistant", "content": "rm -i profile.conf" } ]
single
rm
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "change permissions to 644 on all files under media" }, { "role": "assistant", "content": "find media -type f -print0 | xargs -0 chmod 644" } ]
pipeline
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Find the 10 most common 'throttled'-related lines in metrics.log." }, { "role": "assistant", "content": "grep 'throttled' metrics.log | sort | uniq -c | sort -nr | head -n 10" } ]
pipeline
grep
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "give the owner rwx and everyone else read on invoice.old" }, { "role": "assistant", "content": "chmod 744 invoice.old" } ]
single
chmod
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "download https://mail.example.org/list.txt and count the lines" }, { "role": "assistant", "content": "curl -s https://mail.example.org/list.txt | wc -...
pipeline
curl
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "I need to follow the mongod journal but only show lines mentioning 'SIGTERM'." }, { "role": "assistant", "content": "journalctl -u mongod -f | gr...
pipeline
journalctl
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Given settings.tsv, count each unique line, most common first." }, { "role": "assistant", "content": "cat settings.tsv | sort | uniq -c | sort -nr" } ]
pipeline
uniq
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Make a backup copy of index.md called index.md.bak" }, { "role": "assistant", "content": "cp index.md index.md.bak" } ]
single
cp
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "which directories under media are eating the most space?" }, { "role": "assistant", "content": "du -h --max-depth=1 media | sort -rh" } ]
pipeline
du
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Find files in logs owned by admin." }, { "role": "assistant", "content": "find logs -type f -user admin" } ]
single
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Back up all MySQL databases individually to /data/backup as compressed dumps." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndest=/data/backup\nkeep=30\nmkdir -p \...
script
mysqldump
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Read order.log, then strip trailing whitespace — as a pipeline." }, { "role": "assistant", "content": "cat order.log | sed 's/[[:space:]]*$//'" ...
pipeline
sed
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Please show just the first line in access.jpg." }, { "role": "assistant", "content": "head -n 1 access.jpg" } ]
single
head
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "In app.log, which 10 values of column 3 occur most often?" }, { "role": "assistant", "content": "awk '{print $3}' app.log | sort | uniq -c | sort -nr | head -n 10" ...
pipeline
awk
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Edit auth.yaml in place, replacing 'user_id' with 'pending'." }, { "role": "assistant", "content": "sed -i 's/user_id/pending/g' auth.yaml" } ]
single
sed
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "list the distinct error messages in dmesg.log" }, { "role": "assistant", "content": "grep -i error dmesg.log | sort -u" } ]
pipeline
grep
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Read summary.json, then convert everything to uppercase — as a pipeline." }, { "role": "assistant", "content": "cat summary.json | tr 'a-z' 'A-Z'" } ]
pipeline
tr
[ { "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 /data/uploads." }, { "role": "assistant", "content": "find /data/uploads -type f -printf '%s %p\\n' 2>/dev/nul...
pipeline
find
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Is the apache2 service currently active?" }, { "role": "assistant", "content": "systemctl is-active apache2" } ]
single
systemctl
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "list the distinct error messages in kern.log" }, { "role": "assistant", "content": "grep -i error kern.log | sort -u" } ]
pipeline
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "I need a retry wrapper around connection to cdn.local:5432: 5 attempts, 3s apart." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nmax...
script
bash
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Search cron.log for lines containing 'expired'." }, { "role": "assistant", "content": "grep 'expired' cron.log" } ]
single
grep
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Find 'fatal' in gc.log plus 3 lines of context around each match." }, { "role": "assistant", "content": "grep -C 3 'fatal' gc.log" } ]
single
grep
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "From session.md, show the last 15 lines." }, { "role": "assistant", "content": "cat session.md | tail -n 15" } ]
pipeline
tail
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "send a GET request to https://db01.local/api and show the response headers" }, { "role": "assistant", "content": "curl -I https://db01.local/api" } ]
single
curl
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "What are the disk usage of docs broken down one level deep?" }, { "role": "assistant", "content": "du -h --max-depth=1 docs 2>/dev/null | sort -rh" } ]
pipeline
du
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write me a script that verifies the environment variables AWS_REGION, PORT and REDIS_URL are all set before running." }, { "role": "assistant", "conte...
script
env
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "On the file users.sql, determine what kind of file it is." }, { "role": "assistant", "content": "file users.sql" } ]
single
file
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Read summary.json, then strip trailing whitespace — as a pipeline." }, { "role": "assistant", "content": "cat summary.json | sed 's/[[:space:]]*$//'" ...
pipeline
sed
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Write a small script that accepts --output (-o), --count (-c) and --tag (-t) via getopts, with a usage message." }, { "role": "assistant", "conte...
script
getopts
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Find the 10 most common 'rejected'-related lines in error.log." }, { "role": "assistant", "content": "grep 'rejected' error.log | sort | uniq -c | sort -nr | head -n 10" } ]
pipeline
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show me the 5 largest subdirectories of fixtures." }, { "role": "assistant", "content": "du -h fixtures/* 2>/dev/null | sort -rh | head -n 5" } ]
pipeline
du
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "replace tabs with commas in access.yaml and write to access.yaml.csv" }, { "role": "assistant", "content": "sed 's/\\t/,/g' access.yaml > access.yaml.csv" } ]
pipeline
sed
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Sync and update all packages on Arch." }, { "role": "assistant", "content": "sudo pacman -Syu" } ]
single
pacman
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show me how to list the unique 'invalid' messages in auth.log." }, { "role": "assistant", "content": "grep 'invalid' auth.log | sort -u" } ]
pipeline
grep
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Print column 2 of the comma-separated file inventory.csv." }, { "role": "assistant", "content": "awk -F, '{print $2}' inventory.csv" } ]
single
awk
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "For export.css, show its size, owner and permissions." }, { "role": "assistant", "content": "stat export.css" } ]
single
stat
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a start/stop/restart/status control script for memcached using a case statement." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset...
script
case
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "List the unique 'DEBUG' messages in cron.log." }, { "role": "assistant", "content": "grep 'DEBUG' cron.log | sort -u" } ]
pipeline
grep
[ { "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 catalog.bak." }, { "role": "assistant", "content": "chmod go-w catalog.bak" } ]
single
chmod
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "What are the 5 biggest files under /data/uploads?" }, { "role": "assistant", "content": "find /data/uploads -type f -printf '%s %p\\n' 2>/dev/nul...
pipeline
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Show the top 10 most frequent values in field 3 of the whitespace-separated file products.csv." }, { "role": "assistant", "content": "awk '{print $3}' products.csv | sort | uniq -c | sort -nr | h...
pipeline
awk
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Run 'uptime' on db01.example.com over SSH without an interactive session." }, { "role": "assistant", "content": "ssh mysql@db01.example.com upti...
single
ssh
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Count how many times each line appears in schema.json, most frequent first." }, { "role": "assistant", "content": "sort schema.json | uniq -c | sort -nr" } ]
pipeline
sort
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Take inventory.md and strip trailing whitespace." }, { "role": "assistant", "content": "cat inventory.md | sed 's/[[:space:]]*$//'" } ]
pipeline
sed
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Given response.conf, sort it and drop duplicate lines." }, { "role": "assistant", "content": "cat response.conf | sort -u" } ]
pipeline
sort
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "which directories under /srv/data are eating the most space?" }, { "role": "assistant", "content": "du -h --max-depth=1 /srv/data | sort -rh" }...
pipeline
du
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write a Bash script that loops over every .json file in /data/uploads and changes the owner of each file to deploy." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\n...
script
chown
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "POST a JSON body to https://proxy.internal/api/users" }, { "role": "assistant", "content": "curl -X POST -H 'Content-Type: application/json' -d ...
single
curl
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Show the 10 largest subdirectories in releases." }, { "role": "assistant", "content": "du -h releases/* | sort -rh | head -n 10" } ]
pipeline
du
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Test if request.jpg is present and has content; report missing, empty, or its line count." }, { "role": "assistant", "content": "#!/usr/bin/env ...
script
if
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Recursively make everything in project readable and writable by the owner only." }, { "role": "assistant", "content": "chmod -R 600 project" } ]
single
chmod
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "I need per-database MySQL backups written to /backup and pruned after 5 days." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndest=/b...
script
mysqldump
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "kill every process listening on port 25565" }, { "role": "assistant", "content": "lsof -ti :25565 | xargs -r kill -9" } ]
pipeline
xargs
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Copy auth.bak into lib only if it's newer than what's there." }, { "role": "assistant", "content": "cp -u auth.bak lib/" } ]
single
cp
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Move users.tar.gz into the data folder." }, { "role": "assistant", "content": "mv users.tar.gz data/" } ]
single
mv
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Print the number of fields on each line of access.log." }, { "role": "assistant", "content": "awk '{print NF}' access.log" } ]
single
awk
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "download https://git.local/list.txt and count the lines" }, { "role": "assistant", "content": "curl -s https://git.local/list.txt | wc -l" } ]
pipeline
curl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "move all .py files into the config directory" }, { "role": "assistant", "content": "mv *.py config/" } ]
single
mv
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Use vmstat's wide output, 10s apart, 30 times." }, { "role": "assistant", "content": "vmstat -w 10 30" } ]
single
vmstat
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Take response.csv and count each unique line, most common first." }, { "role": "assistant", "content": "cat response.csv | sort | uniq -c | sort ...
pipeline
uniq
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Fail fast if any of ENV, AWS_REGION, REDIS_URL is unset — write it as a bash guard." }, { "role": "assistant", "content": "#!/usr/bin/env bash\ns...
script
env
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "show memcached logs from the last 180 days" }, { "role": "assistant", "content": "journalctl -u memcached --since '180 days ago'" } ]
single
journalctl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show the parent chain leading to PID 6342." }, { "role": "assistant", "content": "pstree -s 6342" } ]
single
pstree
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Abbreviated session info for jenkins." }, { "role": "assistant", "content": "w -s jenkins" } ]
single
w
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Back up logs to /data/backup as a dated gzip archive, pruning all but the last 10 backups." }, { "role": "assistant", "content": "#!/usr/bin/env ...
script
tar
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "How many lines in mail.log mention 'rejected'?" }, { "role": "assistant", "content": "grep -c 'rejected' mail.log | cat" } ]
pipeline
grep
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Check if sales.pdf exists and cat it, otherwise say it's missing." }, { "role": "assistant", "content": "[ -f sales.pdf ] && cat sales.pdf || echo 'not found'" } ]
pipeline
chain
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show the PID and memory of mongod processes." }, { "role": "assistant", "content": "ps aux | grep mongod | grep -v grep | awk '{print $2, $4}'" } ]
pipeline
ps
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "unmount /mnt/data" }, { "role": "assistant", "content": "sudo umount /mnt/data" } ]
single
mount
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Create the vendor directory if needed and then cd into it." }, { "role": "assistant", "content": "mkdir -p vendor && cd vendor" } ]
pipeline
chain
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "extract all the 'name' fields from https://backup.internal/api/users" }, { "role": "assistant", "content": "curl -s https://backup.internal/api/users ...
pipeline
curl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Check if notes.pdf exists and cat it, otherwise say it's missing." }, { "role": "assistant", "content": "[ -f notes.pdf ] && cat notes.pdf || ec...
pipeline
chain
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write me a script that runs gzip on every .old file in /home/alice, 8 jobs in parallel." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nse...
script
xargs
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "I need to show the last 10 lines containing 'segfault' in access.log." }, { "role": "assistant", "content": "grep 'segfault' access.log | tail -n 10" } ]
pipeline
grep
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "I need a bash script that makes each file read-only for all .md files under /home/deploy." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=/home/deploy\nfor f in...
script
chmod
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Rename profile.py to profile.py.old without overwriting if the target already exists." }, { "role": "assistant", "content": "mv -n profile.py profile.py.old" } ]
single
mv
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write me a script that uses a lock file so only one instance can run at a time, releasing it on exit." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nlock=/tmp/myjo...
script
trap
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "I need a retry wrapper around connection to monitor.example.org:5432: 6 attempts, 5s apart." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pip...
script
bash
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Retry connection to db01.local:5432 at most 3 times with a 2-second backoff, failing loudly if it never succeeds." }, { "role": "assistant", "con...
script
bash