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": "Find the 10 most common '502'-related lines in worker.log."
},
{
"role": "assistant",
"content": "grep '502' worker.log | sort | uniq -c | sort -... | pipeline | grep |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Read changelog.md, then count each unique line, most common first — as a pipeline."
},
{
"role": "assistant",
"content": "cat changelog.md | sort | uniq -c | sort -nr"
}
] | pipeline | uniq |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "I need getopts handling for three options: -i, -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": "Edit changelog.csv in place, replacing '0.0.0.0' with 'warning'."
},
{
"role": "assistant",
"content": "sed -i 's/0.0.0.0/warning/g' changelog.csv"
... | single | sed |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Parse command-line flags -n (name), -t (tag) and -c (count) using getopts and validate that -n is provided."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nname=\"\... | script | getopts |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "How many lines in request.log mention '403'?"
},
{
"role": "assistant",
"content": "grep -c '403' request.log | cat"
}
] | pipeline | grep |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Extract just the email addresses from invoice.log."
},
{
"role": "assistant",
"content": "grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' invoice.log | sort -u"
}
] | pipeline | sed |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Write me a script that accepts --port (-p), --name (-n) and --level (-l) via getopts, with a usage message."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nport=\"\... | script | getopts |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Show what PID 2572 has open."
},
{
"role": "assistant",
"content": "lsof -p 2572"
}
] | single | lsof |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Show error-level dmesg lines mentioning error."
},
{
"role": "assistant",
"content": "dmesg --level=err | grep -i error"
}
] | single | dmesg |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "get the number of items in the JSON array at https://web01.local/api/items"
},
{
"role": "assistant",
"content": "curl -s https://web01.local/api... | pipeline | curl |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "list only the .js files in config"
},
{
"role": "assistant",
"content": "ls config | grep '\\.js$'"
}
] | pipeline | ls |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "locate files under backup modified in the last 90 days"
},
{
"role": "assistant",
"content": "find backup -type f -mtime -90"
}
] | single | find |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Print the 1nd column of inventory.csv (whitespace separated)."
},
{
"role": "assistant",
"content": "awk '{print $1}' inventory.csv"
}
] | single | awk |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Given session.md, keep only non-empty lines."
},
{
"role": "assistant",
"content": "cat session.md | grep -v '^$'"
}
] | pipeline | grep |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "In metrics.csv, which 15 values of column 2 occur most often?"
},
{
"role": "assistant",
"content": "cut -d, -f2 metrics.csv | sort | uniq -c | sort -nr | head -n 1... | pipeline | cut |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Follow the grafana-server journal but only show lines mentioning 'traceback'."
},
{
"role": "assistant",
"content": "journalctl -u grafana-server -f | grep --line-b... | pipeline | journalctl |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "I need a script that runs checksum with sha256sum on every .sh file in data, 2 jobs in parallel."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=data\nfind \"$d... | script | xargs |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Find the 25 hottest values in column 2 of users.tsv (by frequency)."
},
{
"role": "assistant",
"content": "awk '{print $2}' users.tsv | sort | un... | pipeline | awk |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "I need to tally how many times each log level appears in messages."
},
{
"role": "assistant",
"content": "grep -oE '(INFO|WARN|ERROR|DEBUG)' mes... | pipeline | grep |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Rename manifest.sh to manifest.sh.old"
},
{
"role": "assistant",
"content": "mv manifest.sh manifest.sh.old"
}
] | single | mv |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Download https://registry.service.io/file.zip and save it with its remote name."
},
{
"role": "assistant",
"content": "curl -O https://registry.... | single | curl |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "show nginx logs from the last 1 days"
},
{
"role": "assistant",
"content": "journalctl -u nginx --since '1 days ago'"
}
] | single | journalctl |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "list only the .json files in docs"
},
{
"role": "assistant",
"content": "ls docs | grep '\\.json$'"
}
] | pipeline | ls |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "I need a bash script that moves each file into an archive/ subfolder for all .bak files under /srv/data."
},
{
"role": "assistant",
"content": "#... | script | mv |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "delete all blank lines from backup.yaml"
},
{
"role": "assistant",
"content": "sed '/^$/d' backup.yaml"
}
] | single | sed |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "search all .bak files under reports for the word TODO"
},
{
"role": "assistant",
"content": "find reports -name '*.bak' -print0 | xargs -0 grep -... | pipeline | find |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Copy test.tmp to static/ but keep the original timestamps and permissions."
},
{
"role": "assistant",
"content": "cp -p test.tmp static/"
}
] | single | cp |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "search all .bak files under build for the word TODO"
},
{
"role": "assistant",
"content": "find build -name '*.bak' -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": "list only the .yaml files in cache"
},
{
"role": "assistant",
"content": "ls cache | grep '\\.yaml$'"
}
] | pipeline | ls |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Show the listener on port 5672."
},
{
"role": "assistant",
"content": "ss -tlnp sport = :5672"
}
] | single | ss |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "I need a preflight check that AWS_REGION, DB_PASS and API_KEY exist in the environment."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bas... | script | env |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Ping backup.service.io once and branch: print reachable or unreachable based on the result."
},
{
"role": "assistant",
"content": "#!/usr/bin/env... | script | if |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "I need per-database PostgreSQL backups written to /var/backups and pruned after 10 days."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\ns... | script | pg_dump |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Show the 10 largest subdirectories in /home/deploy."
},
{
"role": "assistant",
"content": "du -h /home/deploy/* | sort -rh | head -n 10"
}
] | pipeline | du |
[
{
"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://backup.corp.net/health up to 5 times with a 2-second backoff."
},
{
"role": "assistant",
"conten... | script | retry |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Fail fast if any of PORT, ENV, DB_HOST is unset — write it as a bash guard."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo ... | script | env |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Find the most recently modified file in bin."
},
{
"role": "assistant",
"content": "ls -t bin | head -n 1"
}
] | pipeline | ls |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Create a script that requires exactly two arguments (source and destination) and errors out otherwise."
},
{
"role": "assistant",
"content": "#!/... | script | args |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Fail fast if any of AWS_REGION, REDIS_URL, DB_HOST is unset — write it as a bash guard."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefai... | script | env |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Find all .md files under images."
},
{
"role": "assistant",
"content": "find images -type f -name '*.md'"
}
] | single | find |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Search nginx-error.log for lines containing 'unreachable'."
},
{
"role": "assistant",
"content": "grep 'unreachable' nginx-error.log"
}
] | single | grep |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Back up all MySQL databases individually to /srv/backup as compressed dumps."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -eu... | script | mysqldump |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Write a backup script that xz-compresses /home/deploy into a timestamped tarball under /backup and keeps only the 14 newest."
},
{
"role": "assistant",
"content": "... | script | tar |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "For event.old, count the lines."
},
{
"role": "assistant",
"content": "wc -l event.old"
}
] | single | wc |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Rename profile.gz to profile.gz.old without overwriting if the target already exists."
},
{
"role": "assistant",
"content": "mv -n profile.gz pro... | single | mv |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Append the current date to auth.log."
},
{
"role": "assistant",
"content": "date >> auth.log"
}
] | pipeline | redirection |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "I need getopts handling for three options: -d, -o and -i; print usage on bad input."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nd... | script | getopts |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "recursively search lib for 'dropped' and show line numbers"
},
{
"role": "assistant",
"content": "grep -rn 'dropped' lib"
}
] | single | grep |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "I want a cleanup script for logs that purges .cache files older than 14 days."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -eu... | script | find |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Rename error.xml to error.xml.old"
},
{
"role": "assistant",
"content": "mv error.xml error.xml.old"
}
] | single | mv |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Show just the first line of catalog.json."
},
{
"role": "assistant",
"content": "head -n 1 catalog.json"
}
] | single | head |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Write me a script that runs checksum with sha256sum on every .old file in logs, 4 jobs in parallel."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset ... | script | xargs |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "I need a preflight check that API_KEY, AWS_REGION and DB_PASS exist in the environment."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bas... | script | env |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "What are the 5 most common entries in column 7 of export.csv?"
},
{
"role": "assistant",
"content": "cut -d, -f7 export.csv | sort | uniq -c | so... | pipeline | cut |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Write a small script that runs gzip on every .gif file in /var/www, 4 jobs in parallel."
},
{
"role": "assistant",
"content": "#!/usr/bin/env ba... | script | xargs |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Read error.md, then keep only non-empty lines — as a pipeline."
},
{
"role": "assistant",
"content": "cat error.md | grep -v '^$'"
}
] | pipeline | grep |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Show the last 50 lines containing 'denied' in error.log."
},
{
"role": "assistant",
"content": "grep 'denied' error.log | tail -n 50"
}
] | pipeline | grep |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Download https://www.service.io/file.zip and save it with its remote name."
},
{
"role": "assistant",
"content": "curl -O https://www.service.io/file.... | single | curl |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Find the 10 most common 'overflow'-related lines in syslog.log."
},
{
"role": "assistant",
"content": "grep 'overflow' syslog.log | sort | uniq -... | pipeline | grep |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Count how many files are in /home/alice."
},
{
"role": "assistant",
"content": "ls -1 /home/alice | wc -l"
}
] | pipeline | ls |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "list only the .xml files in project"
},
{
"role": "assistant",
"content": "ls project | grep '\\.xml$'"
}
] | pipeline | ls |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "list only the .gz files in /srv/data"
},
{
"role": "assistant",
"content": "ls /srv/data | grep '\\.gz$'"
}
] | pipeline | ls |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "I want a cleanup script for /var/log that purges .old files older than 10 days."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo p... | script | find |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Give me a frequency tally of column 3 in messages and show the 5 biggest."
},
{
"role": "assistant",
"content": "awk '{print $3}' messages | sort | uniq -c | sort -... | pipeline | awk |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Find the 10 most common 'unauthorized'-related lines in api.log."
},
{
"role": "assistant",
"content": "grep 'unauthorized' api.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": "list only the .json files in logs"
},
{
"role": "assistant",
"content": "ls logs | grep '\\.json$'"
}
] | pipeline | ls |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Recursively set owner and group of docs to mysql:admin."
},
{
"role": "assistant",
"content": "sudo chown -R mysql:admin docs"
}
] | single | chown |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Print carol's process hierarchy including PIDs."
},
{
"role": "assistant",
"content": "pstree -p carol"
}
] | single | pstree |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Show the top 15 most frequent values in field 3 of the whitespace-separated file transactions.tsv."
},
{
"role": "assistant",
"content": "awk '{p... | pipeline | awk |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Tally column 2 of users.tsv and print the 5 top values by count."
},
{
"role": "assistant",
"content": "cut -d, -f2 users.tsv | sort | uniq -c |... | pipeline | cut |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "How do I count how many nginx processes are running?"
},
{
"role": "assistant",
"content": "pgrep -c nginx"
}
] | pipeline | pgrep |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Back up all MySQL databases individually to /var/backups as compressed dumps."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -eu... | script | mysqldump |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "make a bzip2-compressed tarball of include"
},
{
"role": "assistant",
"content": "tar -cjf include.tar.bz2 include"
}
] | single | tar |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "show prometheus logs from the last 21 days"
},
{
"role": "assistant",
"content": "journalctl -u prometheus --since '21 days ago'"
}
] | single | journalctl |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Rank the values of column 1 in dmesg.log by frequency, highest first, top 5 only."
},
{
"role": "assistant",
"content": "cut -d, -f1 dmesg.log |... | pipeline | cut |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Fetch JSON from https://backup.internal/api/users and pretty-print it with jq."
},
{
"role": "assistant",
"content": "curl -s https://backup.internal/api/users | jq... | pipeline | curl |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Clean up /var/log: remove .cache files not modified in 14 days, recording each deletion."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\ns... | script | find |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Loop over every .log file in tests and gzip any that are larger than 10MB."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo p... | script | for |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Display the ancestors of process 1296 as a tree."
},
{
"role": "assistant",
"content": "pstree -s 1296"
}
] | single | pstree |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Show me how to follow the firewalld journal but only show lines mentioning 'deprecated'."
},
{
"role": "assistant",
"content": "journalctl -u firewall... | pipeline | journalctl |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Search messages for lines containing 'denied'."
},
{
"role": "assistant",
"content": "grep 'denied' messages"
}
] | single | grep |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Process all .gz files under /home/alice with optipng using 4 parallel workers via xargs."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefa... | script | xargs |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Show the parent chain leading to PID 3241."
},
{
"role": "assistant",
"content": "pstree -s 3241"
}
] | single | pstree |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Write a small script that alerts if the root filesystem is more than 90% full."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nthresh... | script | if |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "List only directories inside /var/www."
},
{
"role": "assistant",
"content": "ls -d /var/www/*/"
}
] | single | ls |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Show me the disk usage of /usr/local/bin broken down one level deep."
},
{
"role": "assistant",
"content": "du -h --max-depth=1 /usr/local/bin 2>... | pipeline | du |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Rename manifest.tar.gz to manifest.tar.gz.old without overwriting if the target already exists."
},
{
"role": "assistant",
"content": "mv -n manifest.tar.gz manifest.tar.gz.old"
}
] | single | mv |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Take export.log and convert everything to uppercase."
},
{
"role": "assistant",
"content": "cat export.log | tr 'a-z' 'A-Z'"
}
] | pipeline | tr |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Read settings.tsv, then convert everything to uppercase — as a pipeline."
},
{
"role": "assistant",
"content": "cat settings.tsv | 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": "Search nginx-error.log for lines containing 'rejected'."
},
{
"role": "assistant",
"content": "grep 'rejected' nginx-error.log"
}
] | single | grep |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Replace every occurrence of 'disabled' with 'pending' in invoice.json and print the result."
},
{
"role": "assistant",
"content": "sed 's/disabled/pen... | single | sed |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Write a script that categorizes a filename by extension using case (is a .zip an image, archive, doc?)."
},
{
"role": "assistant",
"content": "#!/usr/... | script | case |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Count total lines across all .log files in /opt/scripts."
},
{
"role": "assistant",
"content": "find /opt/scripts -type f -name '*.log' -print0 ... | pipeline | find |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "I want a cleanup script for /var/cache that purges .log files older than 2 days."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset... | script | find |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "search all .txt files under include for the word TODO"
},
{
"role": "assistant",
"content": "find include -name '*.txt' -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": "POST a JSON body to https://web01.service.io/api/users"
},
{
"role": "assistant",
"content": "curl -X POST -H 'Content-Type: application/json' -... | single | curl |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Copy settings.tmp into media only if it's newer than what's there."
},
{
"role": "assistant",
"content": "cp -u settings.tmp media/"
}
] | single | cp |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Ping db01.local once and branch: print reachable or unreachable based on the result."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nhost=db01.local\nif ping -c1 -W... | script | if |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Run 'ffmpeg -i in.mp4 out.mp4' at a lower priority (nice 10)."
},
{
"role": "assistant",
"content": "nice -n 10 ffmpeg -i in.mp4 out.mp4"
}
] | single | nice |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.