messages listlengths 3 3 | category stringclasses 3
values | utility stringclasses 89
values |
|---|---|---|
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "In users.csv, which 15 values of column 2 occur most often?"
},
{
"role": "assistant",
"content": "awk '{print $2}' users.csv | sort | uniq -c | sort -nr | head -n 15"
}
] | pipeline | awk |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "download https://auth.corp.net/list.txt and count the lines"
},
{
"role": "assistant",
"content": "curl -s https://auth.corp.net/list.txt | wc -... | pipeline | curl |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Retry git fetch from origin at most 5 times with a 1-second backoff, failing loudly if it never succeeds."
},
{
"role": "assistant",
"content": "#!/us... | script | git |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Check if request.json exists and cat it, otherwise say it's missing."
},
{
"role": "assistant",
"content": "[ -f request.json ] && cat request.js... | pipeline | chain |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Show the contents of the dist directory sorted by modification time, newest first."
},
{
"role": "assistant",
"content": "ls -lt dist"
}
] | single | ls |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Show me how to tally how many times each log level appears in nginx-access.log."
},
{
"role": "assistant",
"content": "grep -oE '(INFO|WARN|ERROR|DEBU... | pipeline | grep |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "What are the disk usage of scripts broken down one level deep?"
},
{
"role": "assistant",
"content": "du -h --max-depth=1 scripts 2>/dev/null | s... | pipeline | du |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Download https://app01.corp.net/file.zip and save it with its remote name."
},
{
"role": "assistant",
"content": "curl -O https://app01.corp.net/... | single | curl |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Back up all MySQL databases individually to /data/backup as compressed dumps."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pip... | script | mysqldump |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Write a backup script that bzip2-compresses /home/deploy into a timestamped tarball under /mnt/backup and keeps only the 5 newest."
},
{
"role": "as... | script | tar |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "How do I count how many gunicorn processes are running?"
},
{
"role": "assistant",
"content": "pgrep -c gunicorn"
}
] | pipeline | pgrep |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Retry connection to db02.internal:5432 at most 6 times with a 3-second backoff, failing loudly if it never succeeds."
},
{
"role": "assistant",
... | script | bash |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "List all files in /opt/app, including hidden ones, in long format."
},
{
"role": "assistant",
"content": "ls -la /opt/app"
}
] | single | ls |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Write a backup script that xz-compresses /srv/data into a timestamped tarball under /backup and keeps only the 7 newest."
},
{
"role": "assistant",
"c... | script | tar |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Download https://db02.local/file.zip and save it with its remote name."
},
{
"role": "assistant",
"content": "curl -O https://db02.local/file.zip... | single | curl |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Count how often each column-5 value appears in metrics.log; show the 15 most common."
},
{
"role": "assistant",
"content": "cut -d, -f5 metrics.... | pipeline | cut |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Show me the 20 biggest files under migrations."
},
{
"role": "assistant",
"content": "find migrations -type f -printf '%s %p\\n' 2>/dev/null | sort -r... | pipeline | find |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Tally column 1 of scheduler.log and print the 20 top values by count."
},
{
"role": "assistant",
"content": "awk '{print $1}' scheduler.log | sort | uniq -c | sort ... | pipeline | awk |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Write a script that creates a temp working directory and cleans it up on exit using a trap."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nworkdir=\"$(mktemp -d)\"... | script | trap |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Find the 10 most common 'WARNING'-related lines in error.log."
},
{
"role": "assistant",
"content": "grep 'WARNING' error.log | sort | uniq -c | sort -nr | head -n ... | pipeline | grep |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "I need a retry wrapper around curl to https://www.local/health: 5 attempts, 3s apart."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nmax=5\ndelay=3\nfor attempt in... | script | curl |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Retry connection to web01.local:5432 at most 5 times with a 1-second backoff, failing loudly if it never succeeds."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nm... | script | bash |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Take transaction.txt and keep only non-empty lines."
},
{
"role": "assistant",
"content": "cat transaction.txt | grep -v '^$'"
}
] | pipeline | grep |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Find the 10 most common 'WARNING'-related lines in metrics.log."
},
{
"role": "assistant",
"content": "grep 'WARNING' metrics.log | sort | uniq ... | pipeline | grep |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Count how many unique IP-like first fields appear in debug.log."
},
{
"role": "assistant",
"content": "awk '{print $1}' debug.log | sort | uniq -c | sort -nr"
}
] | pipeline | grep |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Remove write permission for group and others on report.sh."
},
{
"role": "assistant",
"content": "chmod go-w report.sh"
}
] | single | chmod |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Run the backup script, sending stdout and stderr to worker.log."
},
{
"role": "assistant",
"content": "./backup.sh > worker.log 2>&1"
}
] | pipeline | redirection |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Give me an init-style dispatcher for the fail2ban service with case on $1."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nsvc=fail2ban\ncase \"${1:-}\" in\n start... | script | case |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Can you write a script that deletes .tmp files older than 2 days from /var/tmp and logs what it removed?"
},
{
"role": "assistant",
"content": "#... | script | find |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Print only lines 10 through 20 of debug.ini."
},
{
"role": "assistant",
"content": "sed -n '10,20p' debug.ini"
}
] | single | sed |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "extract all the 'name' fields from https://cache.example.com/api/users"
},
{
"role": "assistant",
"content": "curl -s https://cache.example.com/a... | pipeline | curl |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Which files does user jenkins have open?"
},
{
"role": "assistant",
"content": "lsof -u jenkins"
}
] | single | lsof |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "show fail2ban logs from the last 7 days"
},
{
"role": "assistant",
"content": "journalctl -u fail2ban --since '7 days ago'"
}
] | single | journalctl |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "list only the .yaml files in /var/log"
},
{
"role": "assistant",
"content": "ls /var/log | grep '\\.yaml$'"
}
] | pipeline | ls |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "I need a retry wrapper around curl to https://proxy.service.io/health: 3 attempts, 1s apart."
},
{
"role": "assistant",
"content": "#!/usr/bin/en... | script | curl |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Create a script that alerts if the root filesystem is more than 95% full."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nthreshold=9... | script | if |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Timestamped vmstat every 3s for 30 samples."
},
{
"role": "assistant",
"content": "vmstat -t 3 30"
}
] | single | vmstat |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Check if profile.log exists and cat it, otherwise say it's missing."
},
{
"role": "assistant",
"content": "[ -f profile.log ] && cat profile.log || ec... | pipeline | chain |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Copy event.html to lib/ but keep the original timestamps and permissions."
},
{
"role": "assistant",
"content": "cp -p event.html lib/"
}
] | single | cp |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Move session.jpg into the data folder."
},
{
"role": "assistant",
"content": "mv session.jpg data/"
}
] | single | mv |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Iterate the hosts in hosts.txt; the script checks if port 22 is open and marks each reachable or not."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nwhile IFS= rea... | script | ssh |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "I need per-database MySQL backups written to /backup and pruned after 7 days."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -eu... | script | mysqldump |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Back up logs to /var/backups 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": "List all files opened by systemd."
},
{
"role": "assistant",
"content": "lsof -c systemd"
}
] | single | lsof |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "I need a rotating backup: archive data into /backup with bzip2, retain 7 copies."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nsrc=... | script | tar |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Count how many files are in data."
},
{
"role": "assistant",
"content": "ls -1 data | wc -l"
}
] | pipeline | ls |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Rename backup.pdf to backup.pdf.old without overwriting if the target already exists."
},
{
"role": "assistant",
"content": "mv -n backup.pdf ba... | single | mv |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Write a start/stop/restart/status control script for prometheus using a case statement."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nse... | script | case |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Show me how to count 'null' occurrences in the grafana-server journal today."
},
{
"role": "assistant",
"content": "journalctl -u grafana-server... | pipeline | journalctl |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Back up all PostgreSQL databases individually to /mnt/backup as compressed dumps."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nse... | script | pg_dump |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Show the top 15 most frequent values in field 1 of the whitespace-separated file debug.log."
},
{
"role": "assistant",
"content": "awk '{print $1}' debug.log | sort | uniq -c | sort -nr | head -n... | pipeline | awk |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Show the top 15 most frequent values in field 2 of the whitespace-separated file output.log."
},
{
"role": "assistant",
"content": "awk '{print $2}' o... | pipeline | awk |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Find the 10 most common 'not found'-related lines in build.log."
},
{
"role": "assistant",
"content": "grep 'not found' build.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": "Write a small script that runs gzip on every .md file in /opt/app, 8 jobs in parallel."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset... | script | xargs |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Extract just the email addresses from profile.txt."
},
{
"role": "assistant",
"content": "grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' profile.tx... | pipeline | sed |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Recursively set owner and group of project to svc-app:www-data."
},
{
"role": "assistant",
"content": "sudo chown -R svc-app:www-data project"
}
] | single | chown |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Write a Bash script that accepts --count (-c), --name (-n) and --level (-l) via getopts, with a usage message."
},
{
"role": "assistant",
"content": "#!/usr/bin/env... | script | getopts |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "give the owner rwx and everyone else read on server.md"
},
{
"role": "assistant",
"content": "chmod 744 server.md"
}
] | single | chmod |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Show me how to show the last 50 lines containing 'throttled' in worker.log."
},
{
"role": "assistant",
"content": "grep 'throttled' worker.log | ... | pipeline | grep |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Show all processes for the user jenkins."
},
{
"role": "assistant",
"content": "ps -u jenkins"
}
] | single | ps |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "What are the 5 largest subdirectories of scripts?"
},
{
"role": "assistant",
"content": "du -h scripts/* 2>/dev/null | sort -rh | head -n 5"
}
] | pipeline | du |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Create a script that watches vendor and prints a message whenever the file count changes."
},
{
"role": "assistant",
"content": "#!/usr/bin/env b... | script | while |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Write an if that checks connectivity to github.io with a single ping."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nh... | script | if |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Follow the postgresql journal but only show lines mentioning 'rejected'."
},
{
"role": "assistant",
"content": "journalctl -u postgresql -f | grep --line-buffered -... | pipeline | journalctl |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Count how many lines in messages match 'TODO'."
},
{
"role": "assistant",
"content": "grep -c 'TODO' messages"
}
] | single | grep |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Copy archive.bak into the releases directory."
},
{
"role": "assistant",
"content": "cp archive.bak releases/"
}
] | single | cp |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Read servers.txt and for each host, report UP/DOWN based on whether it checks if port 22 is open."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nwhile IFS= read -r... | script | ssh |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Back up all MySQL databases individually to /srv/backup as compressed dumps."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ndest=/sr... | script | mysqldump |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "change just the group of config.js to backup"
},
{
"role": "assistant",
"content": "sudo chgrp backup config.js"
}
] | single | chown |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "List all files in fixtures, including hidden ones, in long format."
},
{
"role": "assistant",
"content": "ls -la fixtures"
}
] | single | ls |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "I need a rotating backup: archive backups into /srv/backup with xz, retain 14 copies."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\... | script | tar |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Extract just the email addresses from access.yaml."
},
{
"role": "assistant",
"content": "grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' access.yaml | sort -u"
}
] | pipeline | sed |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Can you write a script that runs gzip on every .html file in /srv/data, 2 jobs in parallel?"
},
{
"role": "assistant",
"content": "#!/usr/bin/env... | script | xargs |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Back up data to /backup as a dated gzip archive, pruning all but the last 14 backups."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset ... | script | tar |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Give me a generic retry wrapper function (max 4 tries) I can call with any command."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nr... | script | function |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Fetch https://app01.corp.net/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 translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Give me a frequency tally of column 2 in kern.log and show the 25 biggest."
},
{
"role": "assistant",
"content": "awk '{print $2}' kern.log | sort | u... | pipeline | awk |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "I need a bash script that compresses each file with gzip for all .pdf files under /data/uploads."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -eu... | script | gzip |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Show me the 10 largest subdirectories of dist."
},
{
"role": "assistant",
"content": "du -h dist/* 2>/dev/null | sort -rh | head -n 10"
}
] | pipeline | du |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "I need getopts handling for three options: -c, -n and -t; print usage on bad input."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -e... | script | getopts |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Print only lines 10 through 20 of schema.log."
},
{
"role": "assistant",
"content": "sed -n '10,20p' schema.log"
}
] | single | sed |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Replace every occurrence of 'inactive' with 'token' in summary.ini and print the result."
},
{
"role": "assistant",
"content": "sed 's/inactive/token/g' summary.ini"
}
] | single | sed |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Find files in tmp larger than +50M."
},
{
"role": "assistant",
"content": "find tmp -type f -size +50M"
}
] | single | find |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Show the last 200 lines of gateway.log."
},
{
"role": "assistant",
"content": "tail -n 200 gateway.log"
}
] | single | tail |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "remove the fzf package with yum"
},
{
"role": "assistant",
"content": "sudo yum remove -y fzf"
}
] | single | dnf |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Test if config.sh is present and has content; report missing, empty, or its line count."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bas... | script | if |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Loop through the .cache files in /var/lib/app and makes a .bak copy of each file — write it as a proper script."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=... | script | cp |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "download /var/log/auth.log from api.internal to the current dir"
},
{
"role": "assistant",
"content": "scp mysql@api.internal:/var/log/auth.log ."
}
] | single | scp |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Run 'python train.py' at a lower priority (nice 15)."
},
{
"role": "assistant",
"content": "nice -n 15 python train.py"
}
] | single | nice |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Run vmstat with MB units every 3 seconds for 20 rounds."
},
{
"role": "assistant",
"content": "vmstat -S M 3 20"
}
] | single | vmstat |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Rename debug.css to debug.css.old without overwriting if the target already exists."
},
{
"role": "assistant",
"content": "mv -n debug.css debug... | single | mv |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Show the top 20 most frequent values in field 3 of the whitespace-separated file nginx-error.log."
},
{
"role": "assistant",
"content": "awk '{print $3}' nginx-error.log | sort | uniq -c | sort -... | pipeline | awk |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Write a shell script that retries a curl to https://8.8.8.8/health up to 6 times, sleeping 5s between attempts."
},
{
"role": "assistant",
"content": "#!/usr/bin/en... | script | curl |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Retry git fetch from origin at most 4 times with a 1-second backoff, failing loudly if it never succeeds."
},
{
"role": "assistant",
"content": ... | script | git |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Create a script that retries a connection to web01.example.com:5432 up to 6 times, sleeping 3s between attempts."
},
{
"role": "assistant",
"cont... | script | bash |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Find files in cache owned by bob."
},
{
"role": "assistant",
"content": "find cache -type f -user bob"
}
] | single | find |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "download https://db02.service.io/list.txt and count the lines"
},
{
"role": "assistant",
"content": "curl -s https://db02.service.io/list.txt | wc -l"
}
] | pipeline | curl |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "recursively search /home/deploy for 'fatal' and show line numbers"
},
{
"role": "assistant",
"content": "grep -rn 'fatal' /home/deploy"
}
] | single | grep |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Find all .zip files under /var/lib/mysql and delete them. (Careful: destructive.)"
},
{
"role": "assistant",
"content": "find /var/lib/mysql -type f -name '*.zip' -... | pipeline | find |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Which processes have files open in /home/alice?"
},
{
"role": "assistant",
"content": "lsof +D /home/alice"
}
] | single | lsof |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.