messages
listlengths
3
3
category
stringclasses
3 values
utility
stringclasses
182 values
variant_group
stringlengths
16
16
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "On this box, find the 5 processes with the most open files." }, { "role": "assistant", "content": "lsof 2>/dev/null | awk '{print $1}' | sort | ...
pipeline
lsof
d57d45a1bd02bbac
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Convert only leading sequences of blanks (overrides -a)." }, { "role": "assistant", "content": "unexpand --first-only data.yaml" } ]
single
unexpand
895476feca36e621
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Find the 10 most common 'exception'-related lines in ingest.log." }, { "role": "assistant", "content": "grep 'exception' ingest.log | sort | uniq...
pipeline
grep
e6b3f87a179f55fc
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Find the 10 most common 'exception'-related lines in ingest.log." }, { "role": "assistant", "content": "grep 'exception' ingest.log | sort | uniq --co...
pipeline
grep
e6b3f87a179f55fc
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "I need to show the last 10 lines containing '500' in worker.log." }, { "role": "assistant", "content": "grep '500' worker.log | tail -n 10" } ]
pipeline
grep
9e2e40b80445fd60
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Retrieve public key from private key." }, { "role": "assistant", "content": "ssh-keygen -f product.json -y" } ]
single
ssh-keygen
9d7eb50d24574c7b
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Find all .tmp files under /opt/app and delete them. (Careful: destructive.)" }, { "role": "assistant", "content": "find /opt/app -type f -name '*.tmp' -print0 | xar...
pipeline
find
b34480b4fd7abd0b
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show all running processes with full details." }, { "role": "assistant", "content": "ps aux" } ]
single
ps
3f251d0cfcc62731
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Show me how to count 'fatal' occurrences in the prometheus journal today." }, { "role": "assistant", "content": "journalctl -u prometheus --since today --no-pager | grep -c 'fatal'" } ]
pipeline
journalctl
9423befce60843dd
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show me how to count 'fatal' occurrences in the prometheus journal today." }, { "role": "assistant", "content": "journalctl --unit prometheus --since today --no-pag...
pipeline
journalctl
9423befce60843dd
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Find the process that opened a local internet port." }, { "role": "assistant", "content": "lsof -i :8443" } ]
single
lsof
85c1427e4f4baff6
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Extract just the email addresses from server.yaml." }, { "role": "assistant", "content": "grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' server.yam...
pipeline
sed
12295cab9f9b2616
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Extract just the email addresses from server.yaml." }, { "role": "assistant", "content": "grep -Eo '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' server.yaml | so...
pipeline
sed
12295cab9f9b2616
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Extract just the email addresses from server.yaml." }, { "role": "assistant", "content": "grep -o -E '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' server.y...
pipeline
sed
12295cab9f9b2616
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "change permissions to 644 on all files under include" }, { "role": "assistant", "content": "find include -type f -print0 | xargs -0 chmod 644" ...
pipeline
find
5067dc3c762f3d19
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Ping a host with specific [c]ount of pings, per-packet time to [W]ait for a response, and total [w]ait time limit of the entire ping run." }, { "role": "assistant", ...
single
ping
9f307acd259efb91
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Display the ancestors of process 5943 as a tree." }, { "role": "assistant", "content": "pstree -s 5943" } ]
single
pstree
dec0dcc919ffb672
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Loop through the .log files in /opt/app and moves each file into an archive/ subfolder — write it as a proper script." }, { "role": "assistant", "content": "#!/usr/...
script
mv
b24397a1049e4ed5
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Extract just the email addresses from manifest.conf." }, { "role": "assistant", "content": "grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' manifest.conf | sort -u" } ]
pipeline
sed
2e15794c85dfd63e
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Extract just the email addresses from manifest.conf." }, { "role": "assistant", "content": "grep -Eo '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' manifest.conf ...
pipeline
sed
2e15794c85dfd63e
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Extract just the email addresses from manifest.conf." }, { "role": "assistant", "content": "grep -o -E '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' manifes...
pipeline
sed
2e15794c85dfd63e
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "follow redirects when fetching https://app01.service.io" }, { "role": "assistant", "content": "curl -L https://app01.service.io" } ]
single
curl
5ac88d88e0a4e31f
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "follow redirects when fetching https://app01.service.io" }, { "role": "assistant", "content": "curl --location https://app01.service.io" } ]
single
curl
5ac88d88e0a4e31f
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Loop over all subdirectories of backups and print each one's total size." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nfor dir in backups/*/; do\n [ -d \"$dir\" ...
script
for
381f6794b3f3d834
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Help me show the top 15 processes by CPU usage." }, { "role": "assistant", "content": "ps aux --sort=-%cpu | head -n 16" } ]
pipeline
ps
068106e0feed5564
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show me how to count '500' occurrences in the docker journal today." }, { "role": "assistant", "content": "journalctl -u docker --since today --n...
pipeline
journalctl
a4e66ec8f62d4524
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Count how many lines in nginx-access.log match 'invalid'." }, { "role": "assistant", "content": "grep -c 'invalid' nginx-access.log" } ]
single
grep
5682f56a7c55154a
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Count how many lines in nginx-access.log match 'invalid'." }, { "role": "assistant", "content": "grep --count 'invalid' nginx-access.log" } ]
single
grep
5682f56a7c55154a
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Count how many lines in nginx-access.log match 'invalid'." }, { "role": "assistant", "content": "grep 'invalid' nginx-access.log | wc -l" } ]
single
grep
5682f56a7c55154a
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Encode a file." }, { "role": "assistant", "content": "base32 event.xml" } ]
single
base32
b1a39aec12e743c1
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "List connections using port 11211 as source or destination." }, { "role": "assistant", "content": "ss -tn 'sport = :11211 or dport = :11211'" } ]
single
ss
004cad7f0567c779
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a small script that pre-creates dated subdirectories under /mnt/backup for the next 5 days." }, { "role": "assistant", "content": "#!/usr/bin/en...
script
for
2d8a5a8b3571e8a3
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "What are the disk usage of images broken down one level deep?" }, { "role": "assistant", "content": "du -h --max-depth=1 images 2>/dev/null | sor...
pipeline
du
58a5bdf4eb3eb512
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "What are the disk usage of images broken down one level deep?" }, { "role": "assistant", "content": "du --human-readable --max-depth=1 images 2>/dev/n...
pipeline
du
58a5bdf4eb3eb512
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Write a Bash script that requires exactly two arguments (source and destination) and errors out otherwise." }, { "role": "assistant", "content":...
script
args
9928e2f31caedf0f
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a loop that restarts these services in order: prometheus ssh systemd-networkd." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -...
script
for
d16d4c5403ee501f
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "List connections using port 9090 as source or destination." }, { "role": "assistant", "content": "ss -tn 'sport = :9090 or dport = :9090'" } ]
single
ss
38eab595a74a8aca
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Fetch https://git.internal/health and print only the HTTP status code." }, { "role": "assistant", "content": "curl -s -o /dev/null -w '%{http_code}' https://git.int...
single
curl
fd8293c244b7238a
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Fetch https://git.internal/health and print only the HTTP status code." }, { "role": "assistant", "content": "curl --silent -o /dev/null -w '%{http_code}' https://git.internal/health" } ]
single
curl
fd8293c244b7238a
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Filter netstat for connections to or from staging.internal." }, { "role": "assistant", "content": "netstat -tn | grep staging.internal" } ]
single
netstat
9e7732047e668a17
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Loop through the .conf files in data and makes each file read-only — write it as a proper script." }, { "role": "assistant", "content": "#!/usr/b...
script
chmod
2844e0ced61002ed
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Remove write permission for group and others on results.zip." }, { "role": "assistant", "content": "chmod go-w results.zip" } ]
single
chmod
ed7d30ba69c512b3
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "POST a JSON body to https://www.corp.net/api/users" }, { "role": "assistant", "content": "curl -X POST -H 'Content-Type: application/json' -d '{\"name\":\"alice\"}' https://www.corp.net/api/users...
single
curl
4736df273d24e05a
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "POST a JSON body to https://www.corp.net/api/users" }, { "role": "assistant", "content": "curl --request POST -H 'Content-Type: application/json' -d '{\"name\":\"alice\"}' https://www.corp.net/ap...
single
curl
4736df273d24e05a
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Sum up the values in column 3 of inventory.csv." }, { "role": "assistant", "content": "awk '{sum+=$3} END{print sum}' inventory.csv" } ]
single
awk
62e5837b803bfc11
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Extract just the email addresses from schema.log." }, { "role": "assistant", "content": "grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' schema.log ...
pipeline
sed
6d29df13dfa48c2e
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Extract just the email addresses from schema.log." }, { "role": "assistant", "content": "grep -Eo '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' schema.log |...
pipeline
sed
6d29df13dfa48c2e
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Extract just the email addresses from schema.log." }, { "role": "assistant", "content": "grep -o -E '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' schema.log | sort -u" } ]
pipeline
sed
6d29df13dfa48c2e
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Count error lines in the cron journal since yesterday." }, { "role": "assistant", "content": "journalctl -u cron --since yesterday | grep -ic er...
pipeline
journalctl
5625d1bb085e917c
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Count error lines in the cron journal since yesterday." }, { "role": "assistant", "content": "journalctl --unit cron --since yesterday | grep -ic error" } ]
pipeline
journalctl
5625d1bb085e917c
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Grep a pattern in a compressed file (case-sensitive)." }, { "role": "assistant", "content": "zgrep corrupt metrics.old" } ]
single
zgrep
a86c265d212d2684
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Given debug.log, count each unique line, most common first." }, { "role": "assistant", "content": "cat debug.log | sort | uniq -c | sort -nr" } ]
pipeline
uniq
64b9153c269a0d0c
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show the 50 most recent memcached log lines, newest last." }, { "role": "assistant", "content": "journalctl -u memcached -n 50" } ]
single
journalctl
417d719477bc1935
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show the 50 most recent memcached log lines, newest last." }, { "role": "assistant", "content": "journalctl --unit memcached -n 50" } ]
single
journalctl
417d719477bc1935
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "I need a preflight check that DB_HOST, REDIS_URL and API_KEY exist in the environment." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nfor var in DB_HOST REDIS_URL ...
script
env
370740fffb0fd90c
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Filter netstat for connections to or from mail.internal." }, { "role": "assistant", "content": "netstat -tn | grep mail.internal" } ]
single
netstat
2764149a9b8fce74
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Case-insensitively find 'fatal' in dmesg.log." }, { "role": "assistant", "content": "grep -i 'fatal' dmesg.log" } ]
single
grep
11365160994bfeca
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Case-insensitively find 'fatal' in dmesg.log." }, { "role": "assistant", "content": "grep --ignore-case 'fatal' dmesg.log" } ]
single
grep
11365160994bfeca
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Process all .pdf files under /data/uploads with gzip using 2 parallel workers via xargs." }, { "role": "assistant", "content": "#!/usr/bin/env b...
script
xargs
55b857a8d3da5884
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "I need getopts handling for three options: -n, -t and -p; print usage on bad input." }, { "role": "assistant", "content": "#!/usr/bin/env bash\ns...
script
getopts
d392aa5d2400aaf6
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Find the 10 most common 'ERROR'-related lines in dmesg.log." }, { "role": "assistant", "content": "grep 'ERROR' dmesg.log | sort | uniq -c | sort -nr | head -n 10" } ]
pipeline
grep
07fff497cbdac1b4
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Find the 10 most common 'ERROR'-related lines in dmesg.log." }, { "role": "assistant", "content": "grep 'ERROR' dmesg.log | sort | uniq --count | sort -nr | head -n...
pipeline
grep
07fff497cbdac1b4
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Write a Bash script that runs checksum with sha256sum on every .yaml file in /mnt/storage, 4 jobs in parallel." }, { "role": "assistant", "content": "#!/usr/bin/env...
script
xargs
ddd378ca093cc269
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Create a script that runs checksum with sha256sum on every .sql file in /data/uploads, 8 jobs in parallel." }, { "role": "assistant", "content": "#!/u...
script
xargs
e9062f93affd6aec
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Enable a given swap area." }, { "role": "assistant", "content": "sudo swapon metrics.xml" } ]
single
swapon
f6ce2672670a01db
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "download https://monitor.local/list.txt and count the lines" }, { "role": "assistant", "content": "curl -s https://monitor.local/list.txt | wc -l...
pipeline
curl
13fd5fc970f868c1
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "download https://monitor.local/list.txt and count the lines" }, { "role": "assistant", "content": "curl --silent https://monitor.local/list.txt | wc -l" } ]
pipeline
curl
13fd5fc970f868c1
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Find the 10 most common 'deprecated'-related lines in build.log." }, { "role": "assistant", "content": "grep 'deprecated' build.log | sort | uniq -c |...
pipeline
grep
fdb16f94438c4114
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Find the 10 most common 'deprecated'-related lines in build.log." }, { "role": "assistant", "content": "grep 'deprecated' build.log | sort | uniq --co...
pipeline
grep
fdb16f94438c4114
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "POST a JSON body to https://backup.example.com/api/users" }, { "role": "assistant", "content": "curl -X POST -H 'Content-Type: application/json' -d '{...
single
curl
ddc488c12511ce55
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "POST a JSON body to https://backup.example.com/api/users" }, { "role": "assistant", "content": "curl --request POST -H 'Content-Type: application/json' -d '{\"name\":\"alice\"}' https://backup.ex...
single
curl
ddc488c12511ce55
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write a small script that verifies the environment variables REDIS_URL, ENV and DB_HOST are all set before running." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\n...
script
env
2c89976f14c72dba
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Append the current date to request.log." }, { "role": "assistant", "content": "date >> request.log" } ]
pipeline
redirection
58042fbaf4bb6aa4
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Report virtual memory statistics every 2 seconds, 3 times." }, { "role": "assistant", "content": "vmstat 2 3" } ]
single
vmstat
2fbe51e28d2b96d9
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Show erin's sessions without the header." }, { "role": "assistant", "content": "w -h erin" } ]
single
w
6f5e3db3bda843b2
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Display a more compact output, replacing consecutive zeros (if any) with a star." }, { "role": "assistant", "content": "xxd auth.example.com index.bak" } ]
single
xxd
047f5120f5b59de4
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Bump process 8213 to a higher priority (nice -5). Requires root." }, { "role": "assistant", "content": "sudo renice -n -5 -p 8213" } ]
single
renice
8301bb92f9291dcc
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Display www-data's processes as a tree." }, { "role": "assistant", "content": "pstree www-data" } ]
single
pstree
30eb7c9933560bbd
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Count how many unique IP-like first fields appear in metrics.log." }, { "role": "assistant", "content": "awk '{print $1}' metrics.log | sort | u...
pipeline
grep
c82e8f5d28ef81b2
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "List the unique 'deprecated' messages in worker.log." }, { "role": "assistant", "content": "grep 'deprecated' worker.log | sort -u" } ]
pipeline
grep
5efab704ad6330d1
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Find the 10 most common 'expired'-related lines in app.log." }, { "role": "assistant", "content": "grep 'expired' app.log | sort | uniq -c | sort -nr ...
pipeline
grep
fb60837cdb54d782
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Find the 10 most common 'expired'-related lines in app.log." }, { "role": "assistant", "content": "grep 'expired' app.log | sort | uniq --count | sort -nr | head -n...
pipeline
grep
fb60837cdb54d782
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Only list matched files (useful when piping to other commands)." }, { "role": "assistant", "content": "rg users.py overflow" } ]
single
rg
410466b7cec6492b
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Show TCP connections involving www.local." }, { "role": "assistant", "content": "netstat -tn | grep www.local" } ]
single
netstat
7999b033cbfc3d77
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Query for ANY available records using TCP protocol." }, { "role": "assistant", "content": "nslookup -vc -type=ANY profile.yaml" } ]
single
nslookup
8b9e7a4096147e38
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "How many lines in syslog.log mention '403'?" }, { "role": "assistant", "content": "grep -c '403' syslog.log | cat" } ]
pipeline
grep
8ed276e9ba71f4a1
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "How many lines in syslog.log mention '403'?" }, { "role": "assistant", "content": "grep --count '403' syslog.log | cat" } ]
pipeline
grep
8ed276e9ba71f4a1
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Give me a script that iterates over data/*.xml and changes the owner of each file to deploy." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=data\nfor f in \"$d...
script
chown
77e7fd11134e508b
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Use vmstat's wide output, 10s apart, 3 times." }, { "role": "assistant", "content": "vmstat -w 10 3" } ]
single
vmstat
373bdc525a583dab
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "search all .css files under tests for the word TODO" }, { "role": "assistant", "content": "find tests -name '*.css' -print0 | xargs -0 grep -l TODO" } ]
pipeline
find
cd976325f1a0d23f
[ { "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 syslog.log." }, { "role": "assistant", "content": "./backup.sh > syslog.log 2>&1" } ]
pipeline
redirection
02eebe6a89624086
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "E[x]tract a (compressed) archive [f]ile into the target directory." }, { "role": "assistant", "content": "tar xf report.jpg modules public" } ]
single
tar
0faef2d921341686
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Run 'find / -name '*.core'' at a lower priority (nice 5)." }, { "role": "assistant", "content": "nice -n 5 find / -name '*.core'" } ]
single
nice
6bdfb1ab0634cdd4
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Unzip archive.zip into the current folder." }, { "role": "assistant", "content": "unzip archive.zip" } ]
single
zip
ba7f44b238ee39d2
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Mirror the site https://git.example.org recursively." }, { "role": "assistant", "content": "wget -r -np https://git.example.org" } ]
single
wget
0ee3aef86844eede
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Mirror the site https://git.example.org recursively." }, { "role": "assistant", "content": "wget --recursive -np https://git.example.org" } ]
single
wget
0ee3aef86844eede
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Run 'npm run build' niced to 15 in the background." }, { "role": "assistant", "content": "nice -n 15 npm run build &" } ]
single
nice
7533adbc7701749a
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "How do I show the top 5 processes by CPU usage?" }, { "role": "assistant", "content": "ps aux --sort=-%cpu | head -n 6" } ]
pipeline
ps
462cde2de90855a8
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "From payment.txt, count the lines." }, { "role": "assistant", "content": "cat payment.txt | wc -l" } ]
pipeline
wc
b0a71bc558b7b991
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "From payment.txt, count the lines." }, { "role": "assistant", "content": "wc -l < payment.txt" } ]
pipeline
wc
b0a71bc558b7b991