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": "Filter netstat for connections to or from mail.corp.net." }, { "role": "assistant", "content": "netstat -tn | grep mail.corp.net" } ]
single
netstat
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "change just the group of metrics.pdf to operators" }, { "role": "assistant", "content": "sudo chgrp operators metrics.pdf" } ]
single
chown
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Bump process 2575 to a higher priority (nice -5). Requires root." }, { "role": "assistant", "content": "sudo renice -n -5 -p 2575" } ]
single
renice
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Sort profile.ini and remove duplicate lines." }, { "role": "assistant", "content": "sort -u profile.ini" } ]
single
sort
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Give me a script that iterates over /home/deploy/*.xml and changes the owner of each file to deploy." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset...
script
chown
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a one-liner to find the 20 processes with the most open files." }, { "role": "assistant", "content": "lsof 2>/dev/null | awk '{print $1}' | sort...
pipeline
lsof
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Filter netstat for connections to or from cache.example.org." }, { "role": "assistant", "content": "netstat -tn | grep cache.example.org" } ]
single
netstat
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "How many lines in syslog mention 'DEBUG'?" }, { "role": "assistant", "content": "grep -c 'DEBUG' syslog | cat" } ]
pipeline
grep
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show connections on port 6379." }, { "role": "assistant", "content": "netstat -anp | grep :6379" } ]
single
netstat
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "change permissions to 644 on all files under src" }, { "role": "assistant", "content": "find src -type f -print0 | xargs -0 chmod 644" } ]
pipeline
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "change permissions to 644 on all files under vendor" }, { "role": "assistant", "content": "find vendor -type f -print0 | xargs -0 chmod 644" } ]
pipeline
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "gzip every .log file under backup" }, { "role": "assistant", "content": "find backup -type f -name '*.log' -print0 | xargs -0 gzip" } ]
pipeline
find
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "List the disk usage of public broken down one level deep." }, { "role": "assistant", "content": "du -h --max-depth=1 public 2>/dev/null | sort -rh" } ]
pipeline
du
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Write me a script that verifies the environment variables AWS_REGION, API_KEY and DB_PASS are all set before running." }, { "role": "assistant", "content": "#!/usr/...
script
env
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "copy the whole include folder to include_copy recursively" }, { "role": "assistant", "content": "cp -r include include_copy" } ]
single
cp
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Make profile.old executable." }, { "role": "assistant", "content": "chmod +x profile.old" } ]
single
chmod
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Run 'python train.py' at higher priority (nice -10); needs root." }, { "role": "assistant", "content": "sudo nice -n -10 python train.py" } ]
single
nice
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Back up all PostgreSQL databases individually to /backup as compressed dumps." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -eu...
script
pg_dump
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a small script that verifies the environment variables DB_PASS, REDIS_URL and ENV are all set before running." }, { "role": "assistant", "conten...
script
env
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Write a backup script that gzip-compresses logs into a timestamped tarball under /data/backup and keeps only the 14 newest." }, { "role": "assistant"...
script
tar
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "give me a human-readable long listing of project" }, { "role": "assistant", "content": "ls -lh project" } ]
single
ls
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "locate files under public modified in the last 180 days" }, { "role": "assistant", "content": "find public -type f -mtime -180" } ]
single
find
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Display postgres's processes as a tree." }, { "role": "assistant", "content": "pstree postgres" } ]
single
pstree
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Show the subtree of processes under PID 5205." }, { "role": "assistant", "content": "pstree -p 5205" } ]
single
pstree
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Display the top memory-consuming processes." }, { "role": "assistant", "content": "ps aux --sort=-%mem" } ]
single
ps
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Find all .zip files under /var/log and delete them. (Careful: destructive.)" }, { "role": "assistant", "content": "find /var/log -type f -name '*.zip'...
pipeline
find
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Iterate the hosts in targets.txt; the script pings each host once and marks each reachable or not." }, { "role": "assistant", "content": "#!/usr...
script
ping
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Fail fast if any of DB_PASS, ENV, REDIS_URL is unset — write it as a bash guard." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset...
script
env
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show the parent chain leading to PID 1428." }, { "role": "assistant", "content": "pstree -s 1428" } ]
single
pstree
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Abbreviated session info for nginx." }, { "role": "assistant", "content": "w -s nginx" } ]
single
w
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Write an if that checks connectivity to registry.example.com with a single ping." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset ...
script
if
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "follow redirects when fetching https://auth.internal" }, { "role": "assistant", "content": "curl -L https://auth.internal" } ]
single
curl
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Find the biggest files under dist." }, { "role": "assistant", "content": "du -ah dist | sort -rh | head -n 20" } ]
pipeline
du
[ { "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
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Give me a script that iterates over /opt/app/*.html and makes a .bak copy of each file." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefai...
script
cp
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Display the routing table." }, { "role": "assistant", "content": "ip route" } ]
single
ip
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Show TCP connections involving cdn.example.com." }, { "role": "assistant", "content": "netstat -tn | grep cdn.example.com" } ]
single
netstat
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show what user svc-app is currently doing." }, { "role": "assistant", "content": "w svc-app" } ]
single
w
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Check if audit.old exists and cat it, otherwise say it's missing." }, { "role": "assistant", "content": "[ -f audit.old ] && cat audit.old || ec...
pipeline
chain
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "give me uptime in the pretty format" }, { "role": "assistant", "content": "uptime -p" } ]
single
uptime
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Parse command-line flags -d (dir), -n (name) and -p (port) using getopts and validate that -d is provided." }, { "role": "assistant", "content": ...
script
getopts
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Clean up /var/tmp: remove .cache files not modified in 7 days, recording each deletion." }, { "role": "assistant", "content": "#!/usr/bin/env bas...
script
find
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "I need a rotating backup: archive /var/lib/app into /var/backups with gzip, retain 5 copies." }, { "role": "assistant", "content": "#!/usr/bin/en...
script
tar
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Lower the priority of process 4007 to nice value 10." }, { "role": "assistant", "content": "renice -n 10 -p 4007" } ]
single
renice
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Use vmstat's wide output, 1s apart, 3 times." }, { "role": "assistant", "content": "vmstat -w 1 3" } ]
single
vmstat
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Please count the lines in results.bak." }, { "role": "assistant", "content": "wc -l results.bak" } ]
single
wc
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show TCP connections involving backup.local." }, { "role": "assistant", "content": "netstat -tn | grep backup.local" } ]
single
netstat
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write a backup script that tars /etc into a timestamped archive under /backup and keeps only the 7 newest." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nsrc=/etc\...
script
tar
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Find all .pdf files under /etc/nginx and delete them. (Careful: destructive.)" }, { "role": "assistant", "content": "find /etc/nginx -type f -name '*....
pipeline
find
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Get the bare PID that holds port 5000." }, { "role": "assistant", "content": "lsof -i :5000 -t" } ]
single
lsof
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Poll memory in MB every 3s, 5 times." }, { "role": "assistant", "content": "free -m -s 3 -c 5" } ]
single
free
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "reduce the priority of all processes owned by deploy" }, { "role": "assistant", "content": "renice -n 15 -u deploy" } ]
single
renice
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "follow redirects when fetching https://git.corp.net" }, { "role": "assistant", "content": "curl -L https://git.corp.net" } ]
single
curl
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Run 'python train.py' at a lower priority (nice 5)." }, { "role": "assistant", "content": "nice -n 5 python train.py" } ]
single
nice
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "List connections using port 25 as source or destination." }, { "role": "assistant", "content": "ss -tn 'sport = :25 or dport = :25'" } ]
single
ss
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Wide-format vmstat every 1s, 10 samples." }, { "role": "assistant", "content": "vmstat -w 1 10" } ]
single
vmstat
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show the 50 most recent cron log lines, newest last." }, { "role": "assistant", "content": "journalctl -u cron -n 50" } ]
single
journalctl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Show the subtree of processes under PID 7369." }, { "role": "assistant", "content": "pstree -p 7369" } ]
single
pstree
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show TCP connections involving web01.example.org." }, { "role": "assistant", "content": "netstat -tn | grep web01.example.org" } ]
single
netstat
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Show connections on port 22." }, { "role": "assistant", "content": "netstat -anp | grep :22" } ]
single
netstat
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Write a loop that restarts these services in order: memcached rabbitmq sshd." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nfor svc ...
script
for
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "show memcached logs from the last 60 days" }, { "role": "assistant", "content": "journalctl -u memcached --since '60 days ago'" } ]
single
journalctl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show error-level dmesg lines mentioning disk." }, { "role": "assistant", "content": "dmesg --level=err | grep -i disk" } ]
single
dmesg
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show the first 20 lines of migration.py." }, { "role": "assistant", "content": "head -n 20 migration.py" } ]
single
head
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "List just the filenames under tmp that contain 'retry'." }, { "role": "assistant", "content": "grep -rl 'retry' tmp" } ]
single
grep
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "copy the whole artifacts folder to artifacts_copy recursively" }, { "role": "assistant", "content": "cp -r artifacts artifacts_copy" } ]
single
cp
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "How many lines in cron.log mention 'expired'?" }, { "role": "assistant", "content": "grep -c 'expired' cron.log | cat" } ]
pipeline
grep
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "give me a human-readable long listing of backup" }, { "role": "assistant", "content": "ls -lh backup" } ]
single
ls
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "give me 3 vmstat readings spaced 5 seconds apart" }, { "role": "assistant", "content": "vmstat 5 3" } ]
single
vmstat
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "change permissions to 644 on all files under project" }, { "role": "assistant", "content": "find project -type f -print0 | xargs -0 chmod 644" } ]
pipeline
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "search all .json files under /home/deploy for the word TODO" }, { "role": "assistant", "content": "find /home/deploy -name '*.json' -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": "Filter netstat for connections to or from mail.internal." }, { "role": "assistant", "content": "netstat -tn | grep mail.internal" } ]
single
netstat
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Give 'rsync -a /data /mnt/backup' a boosted CPU priority of -5." }, { "role": "assistant", "content": "sudo nice -n -5 rsync -a /data /mnt/backup" }...
single
nice
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "change permissions to 644 on all files under fixtures" }, { "role": "assistant", "content": "find fixtures -type f -print0 | xargs -0 chmod 644" } ]
pipeline
find
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "How many lines in output.log mention 'unauthorized'?" }, { "role": "assistant", "content": "grep -c 'unauthorized' output.log | cat" } ]
pipeline
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show the listener on port 25." }, { "role": "assistant", "content": "ss -tlnp sport = :25" } ]
single
ss
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "I need getopts handling for three options: -d, -p and -i; print usage on bad input." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nd...
script
getopts
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "kill every process listening on port 9000" }, { "role": "assistant", "content": "lsof -ti :9000 | xargs -r kill -9" } ]
pipeline
xargs
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "How do I count how many haproxy processes are running?" }, { "role": "assistant", "content": "pgrep -c haproxy" } ]
pipeline
pgrep
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Lower the priority of process 9415 to nice value 10." }, { "role": "assistant", "content": "renice -n 10 -p 9415" } ]
single
renice
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Filter netstat for connections to or from cdn.local." }, { "role": "assistant", "content": "netstat -tn | grep cdn.local" } ]
single
netstat
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show the process tree for user admin." }, { "role": "assistant", "content": "pstree admin" } ]
single
pstree
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Make a backup copy of build.md called build.md.bak" }, { "role": "assistant", "content": "cp build.md build.md.bak" } ]
single
cp
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "change just the group of index.html to mysql" }, { "role": "assistant", "content": "sudo chgrp mysql index.html" } ]
single
chown
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show only device utilization stats, not CPU." }, { "role": "assistant", "content": "iostat -d" } ]
single
iostat
[ { "role": "system", "content": "You translate natural-language requests into correct 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 | sort...
pipeline
sed
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "I need per-database MySQL backups written to /data/backup and pruned after 5 days." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nde...
script
mysqldump
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Write a small script that checks a list of required commands (git, curl, jq) are installed before continuing." }, { "role": "assistant", "content": "#!/usr/bin/env ...
script
command
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Print everything in dmesg.log except the last 500 lines." }, { "role": "assistant", "content": "head -n -500 dmesg.log" } ]
single
head
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Lower the priority of process 1264 to nice value 10." }, { "role": "assistant", "content": "renice -n 10 -p 1264" } ]
single
renice
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show the parent chain leading to PID 7246." }, { "role": "assistant", "content": "pstree -s 7246" } ]
single
pstree
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "List the disk usage of tmp broken down one level deep." }, { "role": "assistant", "content": "du -h --max-depth=1 tmp 2>/dev/null | sort -rh" } ]
pipeline
du
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "get the number of items in the JSON array at https://git.service.io/api/items" }, { "role": "assistant", "content": "curl -s https://git.service.io/api/items | jq 'length'" } ]
pipeline
curl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show all TCP sockets touching port 9200." }, { "role": "assistant", "content": "ss -tn 'sport = :9200 or dport = :9200'" } ]
single
ss
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Watch active/inactive memory with vmstat every 10s." }, { "role": "assistant", "content": "vmstat -a 10" } ]
single
vmstat
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Show the parent chain leading to PID 6324." }, { "role": "assistant", "content": "pstree -s 6324" } ]
single
pstree
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Count how often each column-2 value appears in transactions.tsv; show the 5 most common." }, { "role": "assistant", "content": "cut -d, -f2 tran...
pipeline
cut
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "What's bound to port 2379?" }, { "role": "assistant", "content": "lsof -i :2379" } ]
single
lsof
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "I want to list the top 10 remote IPs by number of connections." }, { "role": "assistant", "content": "ss -tn | awk 'NR>1 {print $5}' | cut -d: -f...
pipeline
ss
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "List all files in /var/www, including hidden ones, in long format." }, { "role": "assistant", "content": "ls -la /var/www" } ]
single
ls