messages listlengths 3 3 | category stringclasses 3
values | utility stringclasses 89
values |
|---|---|---|
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Find the 15 hottest values in column 2 of auth.log (by frequency)."
},
{
"role": "assistant",
"content": "cut -d, -f2 auth.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": "Recursively make everything in releases readable and writable by the owner only."
},
{
"role": "assistant",
"content": "chmod -R 600 releases"
... | single | chmod |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Find any socket using port 27017 via netstat."
},
{
"role": "assistant",
"content": "netstat -anp | grep :27017"
}
] | single | netstat |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Make a backup copy of session.png called session.png.bak"
},
{
"role": "assistant",
"content": "cp session.png session.png.bak"
}
] | single | cp |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "check the type of every file in vendor"
},
{
"role": "assistant",
"content": "file vendor/*"
}
] | single | file |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Loop through the .html files in /opt/app and changes the owner of each file to deploy — write it as a proper script."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\... | script | chown |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Write me a script that deletes .cache files older than 10 days from /var/tmp and logs what it removed."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ntarget=/var/t... | script | find |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Show me the 20 largest subdirectories of /opt/app."
},
{
"role": "assistant",
"content": "du -h /opt/app/* 2>/dev/null | sort -rh | head -n 20"
}
] | pipeline | du |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "I need getopts handling for three options: -t, -n and -c; print usage on bad input."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\n... | script | getopts |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "list the distinct error messages in syslog"
},
{
"role": "assistant",
"content": "grep -i error syslog | sort -u"
}
] | pipeline | grep |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Use vmstat's wide output, 2s apart, 5 times."
},
{
"role": "assistant",
"content": "vmstat -w 2 5"
}
] | single | vmstat |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "How do I count how many node processes are running?"
},
{
"role": "assistant",
"content": "pgrep -c node"
}
] | pipeline | pgrep |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Is anything listening on port 53?"
},
{
"role": "assistant",
"content": "ss -tlnp sport = :53"
}
] | single | ss |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Print the current time in UTC."
},
{
"role": "assistant",
"content": "date -u"
}
] | single | date |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "follow redirects when fetching https://172.16.0.20"
},
{
"role": "assistant",
"content": "curl -L https://172.16.0.20"
}
] | single | curl |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Make a backup copy of error.sh called error.sh.bak"
},
{
"role": "assistant",
"content": "cp error.sh error.sh.bak"
}
] | single | cp |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Add a timestamp column to vmstat, 10s interval, 10 rounds."
},
{
"role": "assistant",
"content": "vmstat -t 10 10"
}
] | single | vmstat |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Show error-level dmesg lines mentioning firmware."
},
{
"role": "assistant",
"content": "dmesg --level=err | grep -i firmware"
}
] | single | dmesg |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Print dmesg entries from yesterday onward with timestamps."
},
{
"role": "assistant",
"content": "dmesg -T --since 'yesterday'"
}
] | single | dmesg |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "give the owner rwx and everyone else read on build.png"
},
{
"role": "assistant",
"content": "chmod 744 build.png"
}
] | single | chmod |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "search all .js files under cache for the word TODO"
},
{
"role": "assistant",
"content": "find cache -name '*.js' -print0 | xargs -0 grep -l TODO"
}
] | pipeline | find |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Write a script that dumps every MySQL database into its own gzip file under /backup/db."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bas... | script | mysqldump |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Show connections on port 8080."
},
{
"role": "assistant",
"content": "netstat -anp | grep :8080"
}
] | single | netstat |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "List the PIDs of sshd sorted by memory use."
},
{
"role": "assistant",
"content": "ps -C sshd -o pid=,rss= --sort=-rss"
}
] | pipeline | ps |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Find directories named uploads anywhere under modules."
},
{
"role": "assistant",
"content": "find modules -type d -name 'uploads'"
}
] | single | find |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Run the backup script, sending stdout and stderr to api.log."
},
{
"role": "assistant",
"content": "./backup.sh > api.log 2>&1"
}
] | pipeline | redirection |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "locate files under templates modified in the last 10 days"
},
{
"role": "assistant",
"content": "find templates -type f -mtime -10"
}
] | single | find |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Change the owner of index.sql to ec2-user."
},
{
"role": "assistant",
"content": "sudo chown ec2-user index.sql"
}
] | single | chown |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Set summary.md to permissions 644."
},
{
"role": "assistant",
"content": "chmod 644 summary.md"
}
] | single | chmod |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Show the top 20 most frequent values in field 7 of the whitespace-separated file worker.log."
},
{
"role": "assistant",
"content": "awk '{print $7}' worker.log | so... | pipeline | awk |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "How do I total the resident memory of all python3 processes in MB?"
},
{
"role": "assistant",
"content": "ps -C python3 -o rss= | awk '{s+=$1} END{pri... | pipeline | ps |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Write a script that retries a curl to https://www.service.io/health up to 10 times, sleeping 1s between attempts."
},
{
"role": "assistant",
"co... | script | curl |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "extract all the 'name' fields from https://db02.example.com/api/users"
},
{
"role": "assistant",
"content": "curl -s https://db02.example.com/api/users | jq -r '.[]... | pipeline | curl |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Find the most recently modified file in reports."
},
{
"role": "assistant",
"content": "ls -t reports | head -n 1"
}
] | pipeline | ls |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Write a backup script that gzip-compresses data into a timestamped tarball under /var/backups and keeps only the 3 newest."
},
{
"role": "assistant",
... | script | tar |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Find any socket using port 8000 via netstat."
},
{
"role": "assistant",
"content": "netstat -anp | grep :8000"
}
] | single | netstat |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Parse command-line flags -i (input), -c (count) and -o (output) using getopts and validate that -i is provided."
},
{
"role": "assistant",
"content": "#!/usr/bin/en... | script | getopts |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "extract all the 'name' fields from https://proxy.service.io/api/users"
},
{
"role": "assistant",
"content": "curl -s https://proxy.service.io/api/users | jq -r '.[].name'"
}
] | pipeline | curl |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Find the 10 hottest values in column 3 of users.tsv (by frequency)."
},
{
"role": "assistant",
"content": "cut -d, -f3 users.tsv | sort | uniq -c | so... | pipeline | cut |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Find files in templates larger than 500M."
},
{
"role": "assistant",
"content": "find templates -type f -size 500M"
}
] | single | find |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Show vmstat in megabytes, 3s interval, 10 samples."
},
{
"role": "assistant",
"content": "vmstat -S M 3 10"
}
] | single | vmstat |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "print lines of metrics.log where column 4 is greater than 100"
},
{
"role": "assistant",
"content": "awk '$4 > 100' metrics.log"
}
] | single | awk |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Display the ancestors of process 1623 as a tree."
},
{
"role": "assistant",
"content": "pstree -s 1623"
}
] | single | pstree |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Loop over all subdirectories of logs and print each one's total size."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefa... | script | for |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Extract just the email addresses from transaction.txt."
},
{
"role": "assistant",
"content": "grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' transac... | pipeline | sed |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "visualize the child processes of dockerd as a tree"
},
{
"role": "assistant",
"content": "pstree -p $(pgrep -o dockerd)"
}
] | single | pstree |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "In customers.csv, which 15 values of column 5 occur most often?"
},
{
"role": "assistant",
"content": "cut -d, -f5 customers.csv | sort | uniq -c | so... | pipeline | cut |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Create a script that retries a git fetch from origin up to 10 times, sleeping 3s between attempts."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nmax=10\ndelay=3\n... | script | git |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "strip leading whitespace from every line of test.json and save to clean.txt"
},
{
"role": "assistant",
"content": "sed 's/^[[:space:]]*//' test.json > clean.txt"
... | pipeline | sed |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Sample iostat 3 times at 1-second intervals."
},
{
"role": "assistant",
"content": "iostat 1 3"
}
] | single | iostat |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Follow live logs for fail2ban."
},
{
"role": "assistant",
"content": "journalctl -u fail2ban -f"
}
] | single | journalctl |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Show TCP connections involving registry.internal."
},
{
"role": "assistant",
"content": "netstat -tn | grep registry.internal"
}
] | single | netstat |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "I need to count 'critical' occurrences in the apache2 journal today."
},
{
"role": "assistant",
"content": "journalctl -u apache2 --since today --no-p... | pipeline | journalctl |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Filter netstat for connections to or from monitor.internal."
},
{
"role": "assistant",
"content": "netstat -tn | grep monitor.internal"
}
] | single | netstat |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Read nodes.txt and for each host, report UP/DOWN based on whether it pings each host once."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipe... | script | ping |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "I need per-database MySQL backups written to /data/backup and pruned after 30 days."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -e... | script | mysqldump |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Count the lines of transaction.conf."
},
{
"role": "assistant",
"content": "wc -l transaction.conf"
}
] | single | wc |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "List sessions with destination monitor.internal."
},
{
"role": "assistant",
"content": "ss -tn dst monitor.internal"
}
] | single | ss |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "which directories under include are eating the most space?"
},
{
"role": "assistant",
"content": "du -h --max-depth=1 include | sort -rh"
}
] | pipeline | du |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Print the 1nd column of metrics.log (whitespace separated)."
},
{
"role": "assistant",
"content": "awk '{print $1}' metrics.log"
}
] | single | awk |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Display bob's processes as a tree."
},
{
"role": "assistant",
"content": "pstree bob"
}
] | single | pstree |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Launch 'dd if=/dev/zero of=test.img bs=1M count=1024' at reduced priority (15)."
},
{
"role": "assistant",
"content": "nice -n 15 dd if=/dev/zero of=test.img bs=1M count=1024"
}
] | single | nice |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Short w listing for user git."
},
{
"role": "assistant",
"content": "w -s git"
}
] | single | w |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Count 'null' occurrences in the systemd-networkd journal today."
},
{
"role": "assistant",
"content": "journalctl -u systemd-networkd --since today --no-pager | grep -c 'null'"
}
] | pipeline | journalctl |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Ping monitor.service.io once and branch: print reachable or unreachable based on the result."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nhost=monitor.service.io... | script | if |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Find the biggest files under /srv/data."
},
{
"role": "assistant",
"content": "du -ah /srv/data | sort -rh | head -n 20"
}
] | pipeline | du |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "get the number of items in the JSON array at https://registry.example.com/api/items"
},
{
"role": "assistant",
"content": "curl -s https://registry.example.com/api/items | jq 'length'"
}
] | pipeline | curl |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Write a start/stop/restart/status control script for haproxy using a case statement."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\n... | script | case |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Set debug.py to permissions 644."
},
{
"role": "assistant",
"content": "chmod 644 debug.py"
}
] | single | chmod |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "List postgres's active sessions with w."
},
{
"role": "assistant",
"content": "w postgres"
}
] | single | w |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "search all .pdf files under data for the word TODO"
},
{
"role": "assistant",
"content": "find data -name '*.pdf' -print0 | xargs -0 grep -l TODO"
}
] | pipeline | find |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Check what holds port 2379 with ss."
},
{
"role": "assistant",
"content": "ss -tlnp sport = :2379"
}
] | single | ss |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Sample vmstat 10 times at a 10-second interval."
},
{
"role": "assistant",
"content": "vmstat 10 10"
}
] | single | vmstat |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Change the owner of inventory.sh to deploy."
},
{
"role": "assistant",
"content": "sudo chown deploy inventory.sh"
}
] | single | chown |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "recursively search images for 'permission denied' and show line numbers"
},
{
"role": "assistant",
"content": "grep -rn 'permission denied' images"
}
] | single | grep |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Filter netstat for connections to or from git.service.io."
},
{
"role": "assistant",
"content": "netstat -tn | grep git.service.io"
}
] | single | netstat |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Can you write a script that checks whether manifest.log exists and is non-empty, printing an appropriate message?"
},
{
"role": "assistant",
"content": "#!/usr/bin/... | script | if |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Find any dmesg lines mentioning i/o."
},
{
"role": "assistant",
"content": "dmesg -T | grep -i i/o"
}
] | single | dmesg |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Run 'uptime' on proxy.example.com over SSH without an interactive session."
},
{
"role": "assistant",
"content": "ssh erin@proxy.example.com upt... | single | ssh |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Write me a script that verifies the environment variables API_KEY, REDIS_URL and DB_PASS are all set before running."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\... | script | env |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Show me the disk usage of tests broken down one level deep."
},
{
"role": "assistant",
"content": "du -h --max-depth=1 tests 2>/dev/null | sort -... | pipeline | du |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Write a backup script that gzip-compresses /opt/app into a timestamped tarball under /srv/backup and keeps only the 5 newest."
},
{
"role": "assistan... | script | tar |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "List all files in dist, including hidden ones, in long format."
},
{
"role": "assistant",
"content": "ls -la dist"
}
] | single | ls |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "strip leading whitespace from every line of product.yaml and save to clean.txt"
},
{
"role": "assistant",
"content": "sed 's/^[[:space:]]*//' product.... | pipeline | sed |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Extended disk I/O stats every 2s, 10 samples."
},
{
"role": "assistant",
"content": "iostat -x 2 10"
}
] | single | iostat |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Write me a script that retries a curl to https://proxy.example.com/health up to 3 times, sleeping 3s between attempts."
},
{
"role": "assistant",
... | script | curl |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "From report.conf, keep only non-empty lines."
},
{
"role": "assistant",
"content": "cat report.conf | grep -v '^$'"
}
] | pipeline | grep |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Write a backup script that xz-compresses logs into a timestamped tarball under /data/backup and keeps only the 5 newest."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipef... | script | tar |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Abbreviated session info for tomcat."
},
{
"role": "assistant",
"content": "w -s tomcat"
}
] | single | w |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Write a retry() function that runs any command up to 5 times until it succeeds."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo p... | script | function |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "List postgres's activity, headerless."
},
{
"role": "assistant",
"content": "w -h postgres"
}
] | single | w |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Make a backup copy of archive.md called archive.md.bak"
},
{
"role": "assistant",
"content": "cp archive.md archive.md.bak"
}
] | single | cp |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Make request.log executable."
},
{
"role": "assistant",
"content": "chmod +x request.log"
}
] | single | chmod |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Delete the first line of event.log in place."
},
{
"role": "assistant",
"content": "sed -i '1d' event.log"
}
] | single | sed |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Display the children of process 8274."
},
{
"role": "assistant",
"content": "pstree -p 8274"
}
] | single | pstree |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "I need getopts handling for three options: -n, -d and -o; print usage on bad input."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nname=\"\"; dir=\"\"; output=\"\"... | script | getopts |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Show what PID 4991 has open."
},
{
"role": "assistant",
"content": "lsof -p 4991"
}
] | single | lsof |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Find kernel errors related to reset."
},
{
"role": "assistant",
"content": "dmesg --level=err | grep -i reset"
}
] | single | dmesg |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Show TCP connections involving api.example.org."
},
{
"role": "assistant",
"content": "netstat -tn | grep api.example.org"
}
] | single | netstat |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Fetch JSON from https://staging.corp.net/api/users and pretty-print it with jq."
},
{
"role": "assistant",
"content": "curl -s https://staging.corp.net/api/users | ... | pipeline | curl |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.