messages listlengths 3 3 | category stringclasses 3
values | utility stringclasses 89
values |
|---|---|---|
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "I need a script that verifies the environment variables DB_PASS, PORT and REDIS_URL are all set before running."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nfor ... | script | env |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "List sessions with destination registry.example.org."
},
{
"role": "assistant",
"content": "ss -tn dst registry.example.org"
}
] | single | ss |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Show the listener on port 5000."
},
{
"role": "assistant",
"content": "ss -tlnp sport = :5000"
}
] | single | ss |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Which files does user carol have open?"
},
{
"role": "assistant",
"content": "lsof -u carol"
}
] | single | lsof |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Write me a script that retries a curl to https://8.8.8.8/health up to 4 times, sleeping 1s between attempts."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nmax=4\n... | script | curl |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Abbreviated session info for ubuntu."
},
{
"role": "assistant",
"content": "w -s ubuntu"
}
] | single | w |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Show TCP connections to db01.local."
},
{
"role": "assistant",
"content": "ss -tn dst db01.local"
}
] | single | ss |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Show error-level dmesg lines mentioning sdb."
},
{
"role": "assistant",
"content": "dmesg --level=err | grep -i sdb"
}
] | single | dmesg |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Show what PID 947 has open."
},
{
"role": "assistant",
"content": "lsof -p 947"
}
] | single | lsof |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Recursively make everything in config readable and writable by the owner only."
},
{
"role": "assistant",
"content": "chmod -R 600 config"
}
] | single | chmod |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "locate files under /etc/nginx modified in the last 7 days"
},
{
"role": "assistant",
"content": "find /etc/nginx -type f -mtime -7"
}
] | single | find |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Write a deployment script: pull the release/1.2 branch, install deps, run tests, and restart the service only if tests pass."
},
{
"role": "assistant... | script | git |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "download https://auth.example.com/list.txt and count the lines"
},
{
"role": "assistant",
"content": "curl -s https://auth.example.com/list.txt | wc -l"
}
] | pipeline | curl |
[
{
"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 downloads."
},
{
"role": "assistant",
"content": "ls -t downloads | head -n 1"
}
] | pipeline | ls |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "visualize the child processes of sshd as a tree"
},
{
"role": "assistant",
"content": "pstree -p $(pgrep -o sshd)"
}
] | single | pstree |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "reload mongod without a full restart"
},
{
"role": "assistant",
"content": "sudo systemctl reload mongod"
}
] | single | systemctl |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Give me a script that iterates over backups/*.txt and moves each file into an archive/ subfolder."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -e... | script | mv |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Process all .cache files under /var/www with optipng using 2 parallel workers via xargs."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=/var/www\nfind \"$dir\"... | script | xargs |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Show active vs inactive memory using vmstat at 10-second intervals."
},
{
"role": "assistant",
"content": "vmstat -a 10"
}
] | single | vmstat |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Count how many times each line appears in auth.log, most frequent first."
},
{
"role": "assistant",
"content": "sort auth.log | uniq -c | sort -... | pipeline | sort |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "delete all blank lines from access.tsv"
},
{
"role": "assistant",
"content": "sed '/^$/d' access.tsv"
}
] | single | sed |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Lower the priority of process 1993 to nice value 10."
},
{
"role": "assistant",
"content": "renice -n 10 -p 1993"
}
] | single | renice |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Lower the priority of process 3313 to nice value 10."
},
{
"role": "assistant",
"content": "renice -n 10 -p 3313"
}
] | single | renice |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Find the 5 hottest values in column 1 of report.tsv (by frequency)."
},
{
"role": "assistant",
"content": "cut -d, -f1 report.tsv | sort | uniq ... | pipeline | cut |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "List the PIDs of tmux sorted by memory use."
},
{
"role": "assistant",
"content": "ps -C tmux -o pid=,rss= --sort=-rss"
}
] | pipeline | ps |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Write a backup script that bzip2-compresses backups into a timestamped tarball under /data/backup and keeps only the 10 newest."
},
{
"role": "assist... | script | tar |
[
{
"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 20 lines containing 'Connection refused' in output.log."
},
{
"role": "assistant",
"content": "grep 'Connection refu... | pipeline | grep |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Edit debug.conf in place, replacing 'http' with 'inactive'."
},
{
"role": "assistant",
"content": "sed -i 's/http/inactive/g' debug.conf"
}
] | single | sed |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Lower the priority of process 4224 to nice value 10."
},
{
"role": "assistant",
"content": "renice -n 10 -p 4224"
}
] | single | renice |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Parse command-line flags -n (name), -c (count) and -l (level) using getopts and validate that -n is provided."
},
{
"role": "assistant",
"content": "#!/usr/bin/env ... | script | getopts |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Print just the PID using port 53."
},
{
"role": "assistant",
"content": "lsof -i :53 -t"
}
] | single | lsof |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Which files does user redis have open?"
},
{
"role": "assistant",
"content": "lsof -u redis"
}
] | single | lsof |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Run 'find / -name '*.core'' at a lower priority (nice 1)."
},
{
"role": "assistant",
"content": "nice -n 1 find / -name '*.core'"
}
] | single | nice |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "replace tabs with commas in request.json and write to request.json.csv"
},
{
"role": "assistant",
"content": "sed 's/\\t/,/g' request.json > req... | pipeline | sed |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Show per-partition stats for sda every 10s."
},
{
"role": "assistant",
"content": "iostat -p sda 10"
}
] | single | iostat |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "get the number of items in the JSON array at https://cache.corp.net/api/items"
},
{
"role": "assistant",
"content": "curl -s https://cache.corp.... | pipeline | curl |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Find the process listening on port 9000."
},
{
"role": "assistant",
"content": "lsof -i :9000"
}
] | single | lsof |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "show apache2 logs from the last 3 days"
},
{
"role": "assistant",
"content": "journalctl -u apache2 --since '3 days ago'"
}
] | single | journalctl |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Restart the chronyd service."
},
{
"role": "assistant",
"content": "sudo systemctl restart chronyd"
}
] | single | systemctl |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Show vmstat in megabytes, 1s interval, 10 samples."
},
{
"role": "assistant",
"content": "vmstat -S M 1 10"
}
] | single | vmstat |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Run vmstat every 3s and stop after 20 samples."
},
{
"role": "assistant",
"content": "vmstat 3 20"
}
] | single | vmstat |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "How long has the system been up?"
},
{
"role": "assistant",
"content": "uptime"
}
] | single | uptime |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Make 7 day-stamped folders under /mnt/backup using a for loop over a date range."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset... | script | for |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Write a health-check loop over hosts.txt that pings each host once and prints the status of each."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -e... | script | ping |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Count how many files are in bin."
},
{
"role": "assistant",
"content": "ls -1 bin | wc -l"
}
] | pipeline | ls |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Sample free 5 times at 5-second intervals in megabytes."
},
{
"role": "assistant",
"content": "free -m -s 5 -c 5"
}
] | single | free |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Given event.txt, show the 20 longest lines."
},
{
"role": "assistant",
"content": "cat event.txt | awk '{ print length, $0 }' | sort -rn | head -20 | ... | pipeline | awk |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Print just the PID using port 2379."
},
{
"role": "assistant",
"content": "lsof -i :2379 -t"
}
] | single | lsof |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Show the 50 most recent nginx log lines, newest last."
},
{
"role": "assistant",
"content": "journalctl -u nginx -n 50"
}
] | single | journalctl |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Process nodes.txt one line at a time, ignoring # comments, printing a running index."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -... | script | while |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Timestamped vmstat every 5s for 5 samples."
},
{
"role": "assistant",
"content": "vmstat -t 5 5"
}
] | single | vmstat |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "visualize the child processes of memcached as a tree"
},
{
"role": "assistant",
"content": "pstree -p $(pgrep -o memcached)"
}
] | single | pstree |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Display svc-app's processes as a tree."
},
{
"role": "assistant",
"content": "pstree svc-app"
}
] | single | pstree |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "gzip every .log file under media"
},
{
"role": "assistant",
"content": "find media -type f -name '*.log' -print0 | xargs -0 gzip"
}
] | pipeline | find |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "I want a cleanup script for /var/tmp that purges .old files older than 90 days."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ntarget=/var/tmp\nage=90\n[ -d \"$tar... | script | find |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Poll memory in MB every 1s, 10 times."
},
{
"role": "assistant",
"content": "free -m -s 1 -c 10"
}
] | single | free |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "List open files owned by ec2-user."
},
{
"role": "assistant",
"content": "lsof -u ec2-user"
}
] | single | lsof |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Show me the 10 largest subdirectories of templates."
},
{
"role": "assistant",
"content": "du -h templates/* 2>/dev/null | sort -rh | head -n 10... | pipeline | du |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "report I/O stats 1 times, one per second"
},
{
"role": "assistant",
"content": "iostat 1 1"
}
] | single | iostat |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "list PIDs and names of processes matching tmux"
},
{
"role": "assistant",
"content": "pgrep -a tmux"
}
] | single | pgrep |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Show the listener on port 2379."
},
{
"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": "Rename catalog.js to catalog.js.old"
},
{
"role": "assistant",
"content": "mv catalog.js catalog.js.old"
}
] | single | mv |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Show detailed per-device iostat, 1s apart, 5 times."
},
{
"role": "assistant",
"content": "iostat -x 1 5"
}
] | single | iostat |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "List just the filenames under /opt/scripts that contain 'not found'."
},
{
"role": "assistant",
"content": "grep -rl 'not found' /opt/scripts"
... | single | grep |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Lower the priority of process 3496 to nice value 10."
},
{
"role": "assistant",
"content": "renice -n 10 -p 3496"
}
] | single | renice |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Restart the cron service."
},
{
"role": "assistant",
"content": "sudo systemctl restart cron"
}
] | single | systemctl |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Write a script that uses a lock file so only one instance can run at a time, releasing it on exit."
},
{
"role": "assistant",
"content": "#!/usr... | script | trap |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "I need a retry wrapper around curl to https://db02.local/health: 5 attempts, 5s apart."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bas... | script | curl |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "How many connections are there to port 8080?"
},
{
"role": "assistant",
"content": "ss -tn | grep ':8080' | wc -l"
}
] | pipeline | ss |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "strip leading whitespace from every line of export.json and save to clean.txt"
},
{
"role": "assistant",
"content": "sed 's/^[[:space:]]*//' exp... | pipeline | sed |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "replace tabs with commas in order.txt and write to order.txt.csv"
},
{
"role": "assistant",
"content": "sed 's/\\t/,/g' order.txt > order.txt.csv"
}
] | pipeline | sed |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Can you write a script that accepts --port (-p), --input (-i) and --name (-n) via getopts, with a usage message?"
},
{
"role": "assistant",
"con... | script | getopts |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Filter netstat for connections to or from db02.corp.net."
},
{
"role": "assistant",
"content": "netstat -tn | grep db02.corp.net"
}
] | single | netstat |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Write a backup script that xz-compresses /opt/app into a timestamped tarball under /mnt/backup and keeps only the 5 newest."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pi... | script | tar |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Sample iostat 3 times at 2-second intervals."
},
{
"role": "assistant",
"content": "iostat 2 3"
}
] | single | iostat |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Wide-format vmstat every 2s, 3 samples."
},
{
"role": "assistant",
"content": "vmstat -w 2 3"
}
] | single | vmstat |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Can you write a script that runs checksum with sha256sum on every .gif file in /mnt/storage, 4 jobs in parallel?"
},
{
"role": "assistant",
"content":... | script | xargs |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "What is operator running right now?"
},
{
"role": "assistant",
"content": "w operator"
}
] | single | w |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "How much RAM is free right now?"
},
{
"role": "assistant",
"content": "free -h"
}
] | single | free |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Write a shell script that loops over every .txt file in backups and removes each matching file."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=backups\nfor f i... | script | rm |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Bump process 2067 to a higher priority (nice -5). Requires root."
},
{
"role": "assistant",
"content": "sudo renice -n -5 -p 2067"
}
] | single | renice |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "visualize the child processes of gunicorn as a tree"
},
{
"role": "assistant",
"content": "pstree -p $(pgrep -o gunicorn)"
}
] | single | pstree |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Create a script that dumps every MySQL database into its own gzip file under /mnt/backup, keeping 30 days."
},
{
"role": "assistant",
"content": "#!/u... | script | mysqldump |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Print dave's process hierarchy including PIDs."
},
{
"role": "assistant",
"content": "pstree -p dave"
}
] | single | pstree |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Count how often each column-4 value appears in worker.log; show the 25 most common."
},
{
"role": "assistant",
"content": "awk '{print $4}' work... | pipeline | awk |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Run 'npm run build' niced to 10 in the background."
},
{
"role": "assistant",
"content": "nice -n 10 npm run build &"
}
] | single | nice |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Filter netstat for connections to or from backup.example.com."
},
{
"role": "assistant",
"content": "netstat -tn | grep backup.example.com"
}
... | single | netstat |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Fail fast if any of API_KEY, PORT, ENV is unset — write it as a bash guard."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nfor var i... | script | env |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Fail fast if any of REDIS_URL, 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 translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Lower the priority of process 4252 to nice value 10."
},
{
"role": "assistant",
"content": "renice -n 10 -p 4252"
}
] | single | renice |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "strip leading whitespace from every line of notes.txt and save to clean.txt"
},
{
"role": "assistant",
"content": "sed 's/^[[:space:]]*//' notes... | pipeline | sed |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Bump process 6300 to a higher priority (nice -5). Requires root."
},
{
"role": "assistant",
"content": "sudo renice -n -5 -p 6300"
}
] | single | renice |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Show TCP connections involving github.com."
},
{
"role": "assistant",
"content": "netstat -tn | grep github.com"
}
] | single | netstat |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Lower the priority of process 2966 to nice value 10."
},
{
"role": "assistant",
"content": "renice -n 10 -p 2966"
}
] | single | renice |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Write a script with a confirm() function that asks the user to confirm before a destructive action."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nconfirm() {\n r... | script | function |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Read results.md, then show the 20 longest lines — as a pipeline."
},
{
"role": "assistant",
"content": "cat results.md | awk '{ print length, $0 ... | pipeline | awk |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "From manifest.conf, strip trailing whitespace."
},
{
"role": "assistant",
"content": "cat manifest.conf | sed 's/[[:space:]]*$//'"
}
] | pipeline | sed |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Lower the priority of process 8988 to nice value 10."
},
{
"role": "assistant",
"content": "renice -n 10 -p 8988"
}
] | single | renice |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "extract all the 'name' fields from https://cdn.service.io/api/users"
},
{
"role": "assistant",
"content": "curl -s https://cdn.service.io/api/us... | pipeline | curl |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "List the disk usage of dist broken down one level deep."
},
{
"role": "assistant",
"content": "du -h --max-depth=1 dist 2>/dev/null | sort -rh"
... | pipeline | du |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.