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": "List all files opened by java." }, { "role": "assistant", "content": "lsof -c java" } ]
single
lsof
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Recursively set owner and group of docs to jenkins:docker." }, { "role": "assistant", "content": "sudo chown -R jenkins:docker docs" } ]
single
chown
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "list the distinct error messages in messages" }, { "role": "assistant", "content": "grep -i error messages | sort -u" } ]
pipeline
grep
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "extract all the 'name' fields from https://192.168.1.10/api/users" }, { "role": "assistant", "content": "curl -s https://192.168.1.10/api/users |...
pipeline
curl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "strip leading whitespace from every line of server.log and save to clean.txt" }, { "role": "assistant", "content": "sed 's/^[[:space:]]*//' server.log...
pipeline
sed
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "How do I total the resident memory of all elasticsearch processes in MB?" }, { "role": "assistant", "content": "ps -C elasticsearch -o rss= | awk...
pipeline
ps
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Watch memory continuously, updating every 2s." }, { "role": "assistant", "content": "free -h -s 2" } ]
single
free
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "remove bat and its config files" }, { "role": "assistant", "content": "sudo apt purge -y bat" } ]
single
apt
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Count total lines across all .jpg files in static." }, { "role": "assistant", "content": "find static -type f -name '*.jpg' -print0 | xargs -0 c...
pipeline
find
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show me the 5 largest subdirectories of /opt/scripts." }, { "role": "assistant", "content": "du -h /opt/scripts/* 2>/dev/null | sort -rh | head -n 5" } ]
pipeline
du
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Archive public and pipe it over ssh to back it up on a remote host." }, { "role": "assistant", "content": "tar -czf - public | ssh jenkins@mail.intern...
pipeline
tar
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Copy payload.gz into the project directory." }, { "role": "assistant", "content": "cp payload.gz project/" } ]
single
cp
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Copy access.sh to fixtures/ but keep the original timestamps and permissions." }, { "role": "assistant", "content": "cp -p access.sh fixtures/" } ]
single
cp
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Read the CSV orders.csv field by field (id,name,email) with a while loop and print a greeting." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo ...
script
while
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Process all .png files under /home/alice with gzip using 4 parallel workers via xargs." }, { "role": "assistant", "content": "#!/usr/bin/env bash...
script
xargs
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "On the file debug.md, show the last 20 lines." }, { "role": "assistant", "content": "tail -n 20 debug.md" } ]
single
tail
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Read product.json, then convert everything to uppercase — as a pipeline." }, { "role": "assistant", "content": "cat product.json | tr 'a-z' 'A-Z'" } ]
pipeline
tr
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show TCP connections involving app01.corp.net." }, { "role": "assistant", "content": "netstat -tn | grep app01.corp.net" } ]
single
netstat
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Find the 10 most common 'traceback'-related lines in messages." }, { "role": "assistant", "content": "grep 'traceback' messages | sort | uniq -c...
pipeline
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Write a small script that deletes .log files older than 1 days from logs and logs what it removed." }, { "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": "I need to list the unique 'permission denied' messages in syslog.log." }, { "role": "assistant", "content": "grep 'permission denied' syslog.log ...
pipeline
grep
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Check whether cron is running and exit 0 if so, 1 otherwise, with a message." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo...
script
if
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Clean up /var/tmp: remove .old files not modified in 1 days, recording each deletion." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ntarget=/var/tmp\nage=1\n[ -d \...
script
find
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Run vmstat with MB units every 2 seconds for 3 rounds." }, { "role": "assistant", "content": "vmstat -S M 2 3" } ]
single
vmstat
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Check what holds port 15672 with ss." }, { "role": "assistant", "content": "ss -tlnp sport = :15672" } ]
single
ss
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "List the 20 largest subdirectories of images." }, { "role": "assistant", "content": "du -h images/* 2>/dev/null | sort -rh | head -n 20" } ]
pipeline
du
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Write a backup script that xz-compresses backups into a timestamped tarball under /mnt/backup and keeps only the 5 newest." }, { "role": "assistant", "content": "#!...
script
tar
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Find the 5 hottest values in column 2 of users.csv (by frequency)." }, { "role": "assistant", "content": "cut -d, -f2 users.csv | sort | uniq -c ...
pipeline
cut
[ { "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.example.com." }, { "role": "assistant", "content": "netstat -tn | grep mail.example.com" } ]
single
netstat
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Run iostat every 3s for 10 reports." }, { "role": "assistant", "content": "iostat 3 10" } ]
single
iostat
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Create a script that generates an nginx config file for example.com using a here-document." }, { "role": "assistant", "content": "#!/usr/bin/env bash\...
script
heredoc
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Process all .css files under /data/uploads with checksum with sha256sum using 2 parallel workers via xargs." }, { "role": "assistant", "content": "#!/usr/bin/env ba...
script
xargs
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show me how to list the unique 'rejected' messages in nginx-access.log." }, { "role": "assistant", "content": "grep 'rejected' nginx-access.log |...
pipeline
grep
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a backup script that gzip-compresses /srv/data into a timestamped tarball under /backup and keeps only the 7 newest." }, { "role": "assistant", ...
script
tar
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "I need a rotating backup: archive /var/www into /var/backups with xz, retain 14 copies." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefai...
script
tar
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Remove write permission for group and others on export.sh." }, { "role": "assistant", "content": "chmod go-w export.sh" } ]
single
chmod
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "I need a script that categorizes a filename by extension using case (is a .jpg an image, archive, doc?)." }, { "role": "assistant", "content": "#...
script
case
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "List just the filenames under dist that contain '500'." }, { "role": "assistant", "content": "grep -rl '500' dist" } ]
single
grep
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Count the number of lines in results.pdf." }, { "role": "assistant", "content": "wc -l results.pdf" } ]
single
wc
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Copy payload.js into the templates directory." }, { "role": "assistant", "content": "cp payload.js templates/" } ]
single
cp
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "move all .xml files into the include directory" }, { "role": "assistant", "content": "mv *.xml include/" } ]
single
mv
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "List the 20 biggest files under /etc/apache2." }, { "role": "assistant", "content": "find /etc/apache2 -type f -printf '%s %p\\n' 2>/dev/null | sort -...
pipeline
find
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Launch 'npm run build' at reduced priority (15)." }, { "role": "assistant", "content": "nice -n 15 npm run build" } ]
single
nice
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "search all .js files under tests for the word TODO" }, { "role": "assistant", "content": "find tests -name '*.js' -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": "Show TCP connections involving backup.corp.net." }, { "role": "assistant", "content": "netstat -tn | grep backup.corp.net" } ]
single
netstat
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show TCP connections involving mail.corp.net." }, { "role": "assistant", "content": "netstat -tn | grep mail.corp.net" } ]
single
netstat
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Rename users.css to users.css.old without overwriting if the target already exists." }, { "role": "assistant", "content": "mv -n users.css users.css.o...
single
mv
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show TCP connections involving www.internal." }, { "role": "assistant", "content": "netstat -tn | grep www.internal" } ]
single
netstat
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "change permissions to 644 on all files under releases" }, { "role": "assistant", "content": "find releases -type f -print0 | xargs -0 chmod 644" } ]
pipeline
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Loop over all subdirectories of /data/uploads and print each one's total size." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nfor dir in /data/uploads/*/; do\n [ ...
script
for
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Find all .old files under src." }, { "role": "assistant", "content": "find src -type f -name '*.old'" } ]
single
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Tally column 1 of metrics.log and print the 15 top values by count." }, { "role": "assistant", "content": "awk '{print $1}' metrics.log | sort | uniq ...
pipeline
awk
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Rename error.bak to error.bak.old without overwriting if the target already exists." }, { "role": "assistant", "content": "mv -n error.bak error.bak.old" } ]
single
mv
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Poll memory in MB every 2s, 10 times." }, { "role": "assistant", "content": "free -m -s 2 -c 10" } ]
single
free
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Short w listing for user www-data." }, { "role": "assistant", "content": "w -s www-data" } ]
single
w
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "quietly download https://cache.corp.net/data.json and save it as data.json" }, { "role": "assistant", "content": "wget -q -O data.json https://cache.corp.net/data.j...
single
wget
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show connections on port 8000." }, { "role": "assistant", "content": "netstat -anp | grep :8000" } ]
single
netstat
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show what changed but hasn't been staged yet." }, { "role": "assistant", "content": "git diff" } ]
single
git
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Show TCP connections involving monitor.service.io." }, { "role": "assistant", "content": "netstat -tn | grep monitor.service.io" } ]
single
netstat
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Take payload.txt and show the 20 longest lines." }, { "role": "assistant", "content": "cat payload.txt | awk '{ print length, $0 }' | sort -rn | head -20 | cut -d' ' -f2-" } ]
pipeline
awk
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Check whether mysqld is running and exit 0 if so, 1 otherwise, with a message." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nproc=m...
script
if
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Find the biggest files under tmp." }, { "role": "assistant", "content": "du -ah tmp | sort -rh | head -n 20" } ]
pipeline
du
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Edit users.ini in place, replacing 'admin' with 'user_id'." }, { "role": "assistant", "content": "sed -i 's/admin/user_id/g' users.ini" } ]
single
sed
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Given error.ini, count each unique line, most common first." }, { "role": "assistant", "content": "cat error.ini | sort | uniq -c | sort -nr" } ]
pipeline
uniq
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "List just the filenames under media that contain 'WARNING'." }, { "role": "assistant", "content": "grep -rl 'WARNING' media" } ]
single
grep
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Append the current date to server.log." }, { "role": "assistant", "content": "date >> server.log" } ]
pipeline
redirection
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Print even numbers up to 20 with a while loop and a counter." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ni=2\nmax=2...
script
while
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "List bob's activity, headerless." }, { "role": "assistant", "content": "w -h bob" } ]
single
w
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Fetch https://auth.internal/health and print only the HTTP status code." }, { "role": "assistant", "content": "curl -s -o /dev/null -w '%{http_co...
single
curl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "List all files opened by rabbitmq." }, { "role": "assistant", "content": "lsof -c rabbitmq" } ]
single
lsof
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "gzip every .log file under /srv/data" }, { "role": "assistant", "content": "find /srv/data -type f -name '*.log' -print0 | xargs -0 gzip" } ]
pipeline
find
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Find empty files in /usr/local/bin." }, { "role": "assistant", "content": "find /usr/local/bin -type f -empty" } ]
single
find
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Parse orders.tsv as comma-separated id,name,email using while read and print each name." }, { "role": "assistant", "content": "#!/usr/bin/env bas...
script
while
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Read hosts.txt line by line and ping each host once, reporting up or down." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefa...
script
while
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "How many lines in debug.log mention '502'?" }, { "role": "assistant", "content": "grep -c '502' debug.log | cat" } ]
pipeline
grep
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Show me how to follow the redis journal but only show lines mentioning 'rejected'." }, { "role": "assistant", "content": "journalctl -u redis -f | grep --line-buffered -i 'rejected'" } ]
pipeline
journalctl
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Set dump.pdf to permissions 644." }, { "role": "assistant", "content": "chmod 644 dump.pdf" } ]
single
chmod
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "For each .pdf file under logs, record a sha256 checksum in a manifest file." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipef...
script
for
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Get fields 1 and 3 from data.csv, colon separated." }, { "role": "assistant", "content": "cut -d: -f1,3 data.csv" } ]
single
cut
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Fetch JSON from https://www.internal/api/users and pretty-print it with jq." }, { "role": "assistant", "content": "curl -s https://www.internal/...
pipeline
curl
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Parse report.tsv as comma-separated id,name,email using while read and print each name." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefai...
script
while
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Print the most recent 10 dmesg entries." }, { "role": "assistant", "content": "dmesg -T | tail -n 10" } ]
single
dmesg
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Filter netstat for connections to or from backup.corp.net." }, { "role": "assistant", "content": "netstat -tn | grep backup.corp.net" } ]
single
netstat
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Find the 10 most common 'invalid'-related lines in dmesg.log." }, { "role": "assistant", "content": "grep 'invalid' dmesg.log | sort | uniq -c |...
pipeline
grep
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Show TCP connections involving app01.internal." }, { "role": "assistant", "content": "netstat -tn | grep app01.internal" } ]
single
netstat
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Find the biggest files under /home/deploy." }, { "role": "assistant", "content": "du -ah /home/deploy | sort -rh | head -n 20" } ]
pipeline
du
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show TCP connections involving staging.corp.net." }, { "role": "assistant", "content": "netstat -tn | grep staging.corp.net" } ]
single
netstat
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "What are the 10 largest subdirectories of build?" }, { "role": "assistant", "content": "du -h build/* 2>/dev/null | sort -rh | head -n 10" } ]
pipeline
du
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show the 10 largest subdirectories in lib." }, { "role": "assistant", "content": "du -h lib/* | sort -rh | head -n 10" } ]
pipeline
du
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "I want a cleanup script for uploads that purges .log files older than 10 days." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -e...
script
find
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Poll memory in MB every 3s, 3 times." }, { "role": "assistant", "content": "free -m -s 3 -c 3" } ]
single
free
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Wide-format vmstat every 1s, 5 samples." }, { "role": "assistant", "content": "vmstat -w 1 5" } ]
single
vmstat
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show the average of the second column in access.log." }, { "role": "assistant", "content": "awk '{s+=$2; n++} END{print s/n}' access.log" } ]
pipeline
awk
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Help me count how many memcached processes are running." }, { "role": "assistant", "content": "pgrep -c memcached" } ]
pipeline
pgrep
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Show deploy's sessions without the header." }, { "role": "assistant", "content": "w -h deploy" } ]
single
w
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Process all .sh files under /srv/data with optipng using 8 parallel workers via xargs." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail...
script
xargs
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Help me total the resident memory of all cron processes in MB." }, { "role": "assistant", "content": "ps -C cron -o rss= | awk '{s+=$1} END{print s/10...
pipeline
ps
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Zip up the fixtures directory into fixtures.zip." }, { "role": "assistant", "content": "zip -r fixtures.zip fixtures" } ]
single
zip
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Run top in batch mode for a single snapshot." }, { "role": "assistant", "content": "top -b -n1" } ]
single
top
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Find any socket using port 53 via netstat." }, { "role": "assistant", "content": "netstat -anp | grep :53" } ]
single
netstat