messages
listlengths
3
3
category
stringclasses
3 values
utility
stringclasses
89 values
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Write me a script that retries a curl to https://monitor.service.io/health up to 6 times, sleeping 5s between attempts." }, { "role": "assistant", ...
script
curl
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Count how many unique IP-like first fields appear in gc.log." }, { "role": "assistant", "content": "awk '{print $1}' gc.log | sort | uniq -c | sort -nr" } ]
pipeline
grep
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "show apache2 logs from the last 30 days" }, { "role": "assistant", "content": "journalctl -u apache2 --since '30 days ago'" } ]
single
journalctl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Watch active/inactive memory with vmstat every 5s." }, { "role": "assistant", "content": "vmstat -a 5" } ]
single
vmstat
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Which files does user ec2-user have open?" }, { "role": "assistant", "content": "lsof -u ec2-user" } ]
single
lsof
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Retry git fetch from origin at most 6 times with a 2-second backoff, failing loudly if it never succeeds." }, { "role": "assistant", "content": "#!/usr/bin/env bash...
script
git
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Create the assets directory if needed and then cd into it." }, { "role": "assistant", "content": "mkdir -p assets && cd assets" } ]
pipeline
chain
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Count how many files are in fixtures." }, { "role": "assistant", "content": "ls -1 fixtures | wc -l" } ]
pipeline
ls
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Show all TCP sockets touching port 22." }, { "role": "assistant", "content": "ss -tn 'sport = :22 or dport = :22'" } ]
single
ss
[ { "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 access.log." }, { "role": "assistant", "content": "awk '{print $1}' access.log | sort | uni...
pipeline
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Bump process 7476 to a higher priority (nice -5). Requires root." }, { "role": "assistant", "content": "sudo renice -n -5 -p 7476" } ]
single
renice
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Write a backup script that gzip-compresses logs into a timestamped tarball under /mnt/backup and keeps only the 5 newest." }, { "role": "assistant",...
script
tar
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "search all .sh files under releases for the word TODO" }, { "role": "assistant", "content": "find releases -name '*.sh' -print0 | xargs -0 grep -l TODO" } ]
pipeline
find
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Lower the priority of process 6047 to nice value 10." }, { "role": "assistant", "content": "renice -n 10 -p 6047" } ]
single
renice
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Follow live logs for grafana-server." }, { "role": "assistant", "content": "journalctl -u grafana-server -f" } ]
single
journalctl
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Wide-format vmstat every 1s, 20 samples." }, { "role": "assistant", "content": "vmstat -w 1 20" } ]
single
vmstat
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show the last 5 commits as a one-line log." }, { "role": "assistant", "content": "git log --oneline -5" } ]
single
git
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Bump process 8670 to a higher priority (nice -5). Requires root." }, { "role": "assistant", "content": "sudo renice -n -5 -p 8670" } ]
single
renice
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Which processes have files open in /etc/apache2?" }, { "role": "assistant", "content": "lsof +D /etc/apache2" } ]
single
lsof
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "replace tabs with commas in summary.conf and write to summary.conf.csv" }, { "role": "assistant", "content": "sed 's/\\t/,/g' summary.conf > summary.conf.csv" } ]
pipeline
sed
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Show carol's process tree with PIDs." }, { "role": "assistant", "content": "pstree -p carol" } ]
single
pstree
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "From summary.ini, convert everything to uppercase." }, { "role": "assistant", "content": "cat summary.ini | tr 'a-z' 'A-Z'" } ]
pipeline
tr
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Find all .conf files under bin and delete them. (Careful: destructive.)" }, { "role": "assistant", "content": "find bin -type f -name '*.conf' -...
pipeline
find
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Give 'make -j4' a boosted CPU priority of -5." }, { "role": "assistant", "content": "sudo nice -n -5 make -j4" } ]
single
nice
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show TCP connections involving auth.local." }, { "role": "assistant", "content": "netstat -tn | grep auth.local" } ]
single
netstat
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "show apache2 logs from the last 60 days" }, { "role": "assistant", "content": "journalctl -u apache2 --since '60 days ago'" } ]
single
journalctl
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Fail fast if any of ENV, PORT, DB_PASS 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 are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Show the systemd journal for the docker service." }, { "role": "assistant", "content": "journalctl -u docker" } ]
single
journalctl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Write a small script that reads a yes/no answer and handles Y/y/yes and N/n/no with a case statement." }, { "role": "assistant", "content": "#!/...
script
case
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Show the 50 most recent fail2ban log lines, newest last." }, { "role": "assistant", "content": "journalctl -u fail2ban -n 50" } ]
single
journalctl
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Write a shell script that renames every .jpeg file in the current directory to .text." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\...
script
for
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Give me a frequency tally of column 4 in scheduler.log and show the 10 biggest." }, { "role": "assistant", "content": "awk '{print $4}' scheduler...
pipeline
awk
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Wide-format vmstat every 2s, 10 samples." }, { "role": "assistant", "content": "vmstat -w 2 10" } ]
single
vmstat
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "list only the .sh files in include" }, { "role": "assistant", "content": "ls include | grep '\\.sh$'" } ]
pipeline
ls
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Find the biggest files under /var/www." }, { "role": "assistant", "content": "du -ah /var/www | sort -rh | head -n 20" } ]
pipeline
du
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Bump process 7715 to a higher priority (nice -5). Requires root." }, { "role": "assistant", "content": "sudo renice -n -5 -p 7715" } ]
single
renice
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show what user bob is currently doing." }, { "role": "assistant", "content": "w bob" } ]
single
w
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Append the current date to cron.log." }, { "role": "assistant", "content": "date >> cron.log" } ]
pipeline
redirection
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Wide-format vmstat every 5s, 20 samples." }, { "role": "assistant", "content": "vmstat -w 5 20" } ]
single
vmstat
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Lower the priority of process 8138 to nice value 10." }, { "role": "assistant", "content": "renice -n 10 -p 8138" } ]
single
renice
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Replace every occurrence of 'staging' with 'PUT' in summary.conf and print the result." }, { "role": "assistant", "content": "sed 's/staging/PUT/g' summary.conf" ...
single
sed
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show which process is using port 5432." }, { "role": "assistant", "content": "lsof -i :5432" } ]
single
lsof
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Search the kernel log for 'cpu' messages." }, { "role": "assistant", "content": "dmesg -T | grep -i cpu" } ]
single
dmesg
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show just disk stats with iostat every 3s." }, { "role": "assistant", "content": "iostat -d 3" } ]
single
iostat
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Show lines in gc.log that do NOT contain 'unauthorized'." }, { "role": "assistant", "content": "grep -v 'unauthorized' gc.log" } ]
single
grep
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show the process tree for user svc-app." }, { "role": "assistant", "content": "pstree svc-app" } ]
single
pstree
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Build the project and only deploy if the build succeeds." }, { "role": "assistant", "content": "make build && ./deploy.sh" } ]
pipeline
chain
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Display active/inactive memory breakdown with vmstat." }, { "role": "assistant", "content": "vmstat -a" } ]
single
vmstat
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "reduce the priority of all processes owned by erin" }, { "role": "assistant", "content": "renice -n 15 -u erin" } ]
single
renice
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Clean up uploads: remove .gz files not modified in 10 days, recording each deletion." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -...
script
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Tally how many times each log level appears in nginx-access.log." }, { "role": "assistant", "content": "grep -oE '(INFO|WARN|ERROR|DEBUG)' nginx-access.log | sort | uniq -c | sort -nr" } ]
pipeline
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Background 'find / -name '*.core'' at nice level 15." }, { "role": "assistant", "content": "nice -n 15 find / -name '*.core' &" } ]
single
nice
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "List ec2-user's active sessions with w." }, { "role": "assistant", "content": "w ec2-user" } ]
single
w
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Replace every occurrence of 'password' with 'session' in profile.ini and print the result." }, { "role": "assistant", "content": "sed 's/passwor...
single
sed
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "I want a cleanup script for /var/tmp that purges .log files older than 21 days." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -...
script
find
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "What are the 5 biggest files under /srv/www?" }, { "role": "assistant", "content": "find /srv/www -type f -printf '%s %p\\n' 2>/dev/null | sort -...
pipeline
find
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Abbreviated session info for bob." }, { "role": "assistant", "content": "w -s bob" } ]
single
w
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "show mysql logs from the last 5 days" }, { "role": "assistant", "content": "journalctl -u mysql --since '5 days ago'" } ]
single
journalctl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Lower the priority of process 3456 to nice value 10." }, { "role": "assistant", "content": "renice -n 10 -p 3456" } ]
single
renice
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Run 'gzip huge.log' niced to 1 in the background." }, { "role": "assistant", "content": "nice -n 1 gzip huge.log &" } ]
single
nice
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Show every open file under /opt/scripts." }, { "role": "assistant", "content": "lsof +D /opt/scripts" } ]
single
lsof
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show every open file under media." }, { "role": "assistant", "content": "lsof +D media" } ]
single
lsof
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "I need a rotating backup: archive /var/lib/app into /backup with gzip, retain 3 copies." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nse...
script
tar
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Process all .html files under /home/deploy with optipng using 8 parallel workers via xargs." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=/home/deploy\nfind \...
script
xargs
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Run iostat -x every 1 seconds and skip zero-activity devices." }, { "role": "assistant", "content": "iostat -xz 1" } ]
single
iostat
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Bump process 8690 to a higher priority (nice -5). Requires root." }, { "role": "assistant", "content": "sudo renice -n -5 -p 8690" } ]
single
renice
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "List open files owned by carol." }, { "role": "assistant", "content": "lsof -u carol" } ]
single
lsof
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Show the 10 largest subdirectories in tmp." }, { "role": "assistant", "content": "du -h tmp/* | sort -rh | head -n 10" } ]
pipeline
du
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "List the 10 biggest files under reports." }, { "role": "assistant", "content": "find reports -type f -printf '%s %p\\n' 2>/dev/null | sort -rn | head -n 10" } ]
pipeline
find
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "change permissions to 644 on all files under /etc/apache2" }, { "role": "assistant", "content": "find /etc/apache2 -type f -print0 | xargs -0 chm...
pipeline
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Check what holds port 3000 with ss." }, { "role": "assistant", "content": "ss -tlnp sport = :3000" } ]
single
ss
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Launch 'npm run build' at reduced priority (10)." }, { "role": "assistant", "content": "nice -n 10 npm run build" } ]
single
nice
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "download /var/log/cron.log from cache.example.com to the current dir" }, { "role": "assistant", "content": "scp erin@cache.example.com:/var/log/cron.log ." } ]
single
scp
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Start 'gzip huge.log' with nice value 19 so it doesn't hog the CPU." }, { "role": "assistant", "content": "nice -n 19 gzip huge.log" } ]
single
nice
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Count how many files are in releases." }, { "role": "assistant", "content": "ls -1 releases | wc -l" } ]
pipeline
ls
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "remove the git package with yum" }, { "role": "assistant", "content": "sudo yum remove -y git" } ]
single
dnf
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "kill every process listening on port 80" }, { "role": "assistant", "content": "lsof -ti :80 | xargs -r kill -9" } ]
pipeline
xargs
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Use vmstat's wide output, 10s apart, 5 times." }, { "role": "assistant", "content": "vmstat -w 10 5" } ]
single
vmstat
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show established connections on port 25565." }, { "role": "assistant", "content": "lsof -i :25565 -sTCP:ESTABLISHED" } ]
single
lsof
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Find any socket using port 8443 via netstat." }, { "role": "assistant", "content": "netstat -anp | grep :8443" } ]
single
netstat
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Parse command-line flags -n (name), -l (level) and -p (port) using getopts and validate that -n is provided." }, { "role": "assistant", "content...
script
getopts
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "List every TCP socket without name resolution." }, { "role": "assistant", "content": "ss -tan" } ]
single
ss
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Display the ancestors of process 1504 as a tree." }, { "role": "assistant", "content": "pstree -s 1504" } ]
single
pstree
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "list only the .yaml files in backup" }, { "role": "assistant", "content": "ls backup | grep '\\.yaml$'" } ]
pipeline
ls
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Print just the PID using port 6379." }, { "role": "assistant", "content": "lsof -i :6379 -t" } ]
single
lsof
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Show the 10 largest subdirectories in vendor." }, { "role": "assistant", "content": "du -h vendor/* | sort -rh | head -n 10" } ]
pipeline
du
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Bump process 4451 to a higher priority (nice -5). Requires root." }, { "role": "assistant", "content": "sudo renice -n -5 -p 4451" } ]
single
renice
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "How many connections are there to port 25?" }, { "role": "assistant", "content": "ss -tn | grep ':25' | wc -l" } ]
pipeline
ss
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Parse command-line flags -c (count), -t (tag) and -p (port) using getopts and validate that -c is provided." }, { "role": "assistant", "content": "#!/...
script
getopts
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "How many lines in access.log mention 'Connection refused'?" }, { "role": "assistant", "content": "grep -c 'Connection refused' access.log | cat" } ]
pipeline
grep
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Give 'make -j4' a boosted CPU priority of -10." }, { "role": "assistant", "content": "sudo nice -n -10 make -j4" } ]
single
nice
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show connections on port 25565." }, { "role": "assistant", "content": "netstat -anp | grep :25565" } ]
single
netstat
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "show prometheus logs from the last 30 days" }, { "role": "assistant", "content": "journalctl -u prometheus --since '30 days ago'" } ]
single
journalctl
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Write a one-liner to list the top 10 remote IPs by number of connections." }, { "role": "assistant", "content": "ss -tn | awk 'NR>1 {print $5}' | cut -d: -f1 | sort...
pipeline
ss
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "show mongod logs from the last 7 days" }, { "role": "assistant", "content": "journalctl -u mongod --since '7 days ago'" } ]
single
journalctl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "I need to follow the mongod journal but only show lines mentioning 'Connection refused'." }, { "role": "assistant", "content": "journalctl -u mongod -...
pipeline
journalctl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show the subtree of processes under PID 5125." }, { "role": "assistant", "content": "pstree -p 5125" } ]
single
pstree
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Make a backup copy of metrics.yaml called metrics.yaml.bak" }, { "role": "assistant", "content": "cp metrics.yaml metrics.yaml.bak" } ]
single
cp
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Show a recursive listing of /mnt/data." }, { "role": "assistant", "content": "ls -R /mnt/data" } ]
single
ls
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Take changelog.conf and strip trailing whitespace." }, { "role": "assistant", "content": "cat changelog.conf | sed 's/[[:space:]]*$//'" } ]
pipeline
sed