messages
listlengths
3
3
category
stringclasses
3 values
utility
stringclasses
89 values
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "change permissions to 644 on all files under /var/lib/mysql" }, { "role": "assistant", "content": "find /var/lib/mysql -type f -print0 | xargs -0 chmo...
pipeline
find
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Please show just the first line in data.csv." }, { "role": "assistant", "content": "head -n 1 data.csv" } ]
single
head
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Search apt for packages matching nmap." }, { "role": "assistant", "content": "apt search nmap" } ]
single
apt
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "List alice's active sessions with w." }, { "role": "assistant", "content": "w alice" } ]
single
w
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Find files in /data/uploads larger than 500M." }, { "role": "assistant", "content": "find /data/uploads -type f -size 500M" } ]
single
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "How do I list files in /srv/www sorted by size?" }, { "role": "assistant", "content": "ls -lS /srv/www" } ]
single
ls
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Help me list the PIDs of vim sorted by memory use." }, { "role": "assistant", "content": "ps -C vim -o pid=,rss= --sort=-rss" } ]
pipeline
ps
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Can you write a script that renames every .JPG file in the current directory to .html?" }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nfor f in *.JPG; do\n [ -e \"...
script
for
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Read schema.csv, then sort it and drop duplicate lines — as a pipeline." }, { "role": "assistant", "content": "cat schema.csv | sort -u" } ]
pipeline
sort
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write a deployment script: pull the feature/login branch, install deps, run tests, and restart the service only if tests pass." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo...
script
git
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "list the distinct error messages in nginx-access.log" }, { "role": "assistant", "content": "grep -i error nginx-access.log | sort -u" } ]
pipeline
grep
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Update the modification time of dump.jpg to now." }, { "role": "assistant", "content": "touch dump.jpg" } ]
single
touch
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "change permissions to 644 on all files under config" }, { "role": "assistant", "content": "find config -type f -print0 | xargs -0 chmod 644" } ]
pipeline
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Display the ancestors of process 7237 as a tree." }, { "role": "assistant", "content": "pstree -s 7237" } ]
single
pstree
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "download https://www.corp.net/list.txt and count the lines" }, { "role": "assistant", "content": "curl -s https://www.corp.net/list.txt | wc -l" ...
pipeline
curl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "strip leading whitespace from every line of results.yaml and save to clean.txt" }, { "role": "assistant", "content": "sed 's/^[[:space:]]*//' results....
pipeline
sed
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show TCP connections to mail.service.io." }, { "role": "assistant", "content": "ss -tn dst mail.service.io" } ]
single
ss
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "I need to list the unique 'dropped' messages in error.log." }, { "role": "assistant", "content": "grep 'dropped' error.log | sort -u" } ]
pipeline
grep
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Create a script that deletes .log files older than 2 days from cache and logs what it removed." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ntarget=cache\nage=2\n...
script
find
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Find any socket using port 9090 via netstat." }, { "role": "assistant", "content": "netstat -anp | grep :9090" } ]
single
netstat
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show the 10 largest subdirectories in /srv/www." }, { "role": "assistant", "content": "du -h /srv/www/* | sort -rh | head -n 10" } ]
pipeline
du
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "gzip every .log file under static" }, { "role": "assistant", "content": "find static -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": "Copy migration.xml into the downloads directory." }, { "role": "assistant", "content": "cp migration.xml downloads/" } ]
single
cp
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show the 10 largest subdirectories in assets." }, { "role": "assistant", "content": "du -h assets/* | sort -rh | head -n 10" } ]
pipeline
du
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "List ec2-user's activity, headerless." }, { "role": "assistant", "content": "w -h ec2-user" } ]
single
w
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show me how to show the last 20 lines containing 'stale' in error.log." }, { "role": "assistant", "content": "grep 'stale' error.log | tail -n 20" } ]
pipeline
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Take response.yaml and keep only non-empty lines." }, { "role": "assistant", "content": "cat response.yaml | grep -v '^$'" } ]
pipeline
grep
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Read report.md, then show the last 15 lines — as a pipeline." }, { "role": "assistant", "content": "cat report.md | tail -n 15" } ]
pipeline
tail
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Rank the values of column 2 in metrics.log by frequency, highest first, top 25 only." }, { "role": "assistant", "content": "awk '{print $2}' met...
pipeline
awk
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "For credentials.xml, determine what kind of file it is." }, { "role": "assistant", "content": "file credentials.xml" } ]
single
file
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Run 'tar -czf backup.tar.gz /home/deploy' niced to 15 in the background." }, { "role": "assistant", "content": "nice -n 15 tar -czf backup.tar.gz...
single
nice
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Print column 3 of the comma-separated file data.csv." }, { "role": "assistant", "content": "awk -F, '{print $3}' data.csv" } ]
single
awk
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "search all .zip files under uploads for the word TODO" }, { "role": "assistant", "content": "find uploads -name '*.zip' -print0 | xargs -0 grep -l TODO" } ]
pipeline
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Given event.log, convert everything to uppercase." }, { "role": "assistant", "content": "cat event.log | tr 'a-z' 'A-Z'" } ]
pipeline
tr
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Show vmstat in megabytes, 3s interval, 3 samples." }, { "role": "assistant", "content": "vmstat -S M 3 3" } ]
single
vmstat
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Set main.py to permissions 644." }, { "role": "assistant", "content": "chmod 644 main.py" } ]
single
chmod
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "For each .sql file under /mnt/storage, record a sha256 checksum in a manifest file." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ns...
script
for
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Delete the first line of notes.ini in place." }, { "role": "assistant", "content": "sed -i '1d' notes.ini" } ]
single
sed
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "List sessions with destination api.corp.net." }, { "role": "assistant", "content": "ss -tn dst api.corp.net" } ]
single
ss
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Rename customer.py to customer.py.old without overwriting if the target already exists." }, { "role": "assistant", "content": "mv -n customer.py ...
single
mv
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Use vmstat's wide output, 3s apart, 30 times." }, { "role": "assistant", "content": "vmstat -w 3 30" } ]
single
vmstat
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Warn if any filesystem is over 90% full." }, { "role": "assistant", "content": "df -h | awk 'NR>1 && $5+0 > 90 {print $6, $5}'" } ]
pipeline
df
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Read payload.log, then sort it and drop duplicate lines — as a pipeline." }, { "role": "assistant", "content": "cat payload.log | sort -u" } ]
pipeline
sort
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Find all .old files under artifacts and delete them. (Careful: destructive.)" }, { "role": "assistant", "content": "find artifacts -type f -name '*.ol...
pipeline
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Gracefully terminate the process with PID 8190." }, { "role": "assistant", "content": "kill 8190" } ]
single
kill
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Show connections on port 15672." }, { "role": "assistant", "content": "netstat -anp | grep :15672" } ]
single
netstat
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Check whether tmux 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 Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "List dave's active sessions with w." }, { "role": "assistant", "content": "w dave" } ]
single
w
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Remove write permission for group and others on migration.tar.gz." }, { "role": "assistant", "content": "chmod go-w migration.tar.gz" } ]
single
chmod
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Append the current date to nginx-access.log." }, { "role": "assistant", "content": "date >> nginx-access.log" } ]
pipeline
redirection
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show the process tree for user git." }, { "role": "assistant", "content": "pstree git" } ]
single
pstree
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Print everything in access.log except the last 40 lines." }, { "role": "assistant", "content": "head -n -40 access.log" } ]
single
head
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Print it with line numbers of results.js." }, { "role": "assistant", "content": "nl results.js" } ]
single
nl
[ { "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, PORT and DB_HOST are all set before running." }, { "role": "assistant", "content": "#!/usr/bin...
script
env
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Sample free 3 times at 3-second intervals in megabytes." }, { "role": "assistant", "content": "free -m -s 3 -c 3" } ]
single
free
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "recursively search /usr/local/bin for 'segfault' and show line numbers" }, { "role": "assistant", "content": "grep -rn 'segfault' /usr/local/bin" } ...
single
grep
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Read inventory.log, then show the 20 longest lines — as a pipeline." }, { "role": "assistant", "content": "cat inventory.log | awk '{ print lengt...
pipeline
awk
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show vmstat in megabytes, 1s interval, 20 samples." }, { "role": "assistant", "content": "vmstat -S M 1 20" } ]
single
vmstat
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "extract all the 'name' fields from https://git.corp.net/api/users" }, { "role": "assistant", "content": "curl -s https://git.corp.net/api/users ...
pipeline
curl
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Print the current date and time." }, { "role": "assistant", "content": "date" } ]
single
date
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Poll memory in MB every 1s, 5 times." }, { "role": "assistant", "content": "free -m -s 1 -c 5" } ]
single
free
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "List sessions with destination 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": "list only the .conf files in scripts" }, { "role": "assistant", "content": "ls scripts | grep '\\.conf$'" } ]
pipeline
ls
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show TCP connections involving 192.168.1.10." }, { "role": "assistant", "content": "netstat -tn | grep 192.168.1.10" } ]
single
netstat
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "get the current Unix timestamp" }, { "role": "assistant", "content": "date +%s" } ]
single
date
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Find directories named migrations anywhere under /var/lib/mysql." }, { "role": "assistant", "content": "find /var/lib/mysql -type d -name 'migrations'...
single
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Help me total the resident memory of all chrome processes in MB." }, { "role": "assistant", "content": "ps -C chrome -o rss= | awk '{s+=$1} END{print ...
pipeline
ps
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "In users.csv, which 10 values of column 4 occur most often?" }, { "role": "assistant", "content": "cut -d, -f4 users.csv | sort | uniq -c | sort -nr |...
pipeline
cut
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Recursively make everything in artifacts readable and writable by the owner only." }, { "role": "assistant", "content": "chmod -R 600 artifacts" } ]
single
chmod
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Find all .css files under logs and delete them. (Careful: destructive.)" }, { "role": "assistant", "content": "find logs -type f -name '*.css' -print0 | xargs -0 rm -f" } ]
pipeline
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "List the unique 'TODO' messages in dmesg.log." }, { "role": "assistant", "content": "grep 'TODO' dmesg.log | sort -u" } ]
pipeline
grep
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Append the current date to audit.log." }, { "role": "assistant", "content": "date >> audit.log" } ]
pipeline
redirection
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "which directories under vendor are eating the most space?" }, { "role": "assistant", "content": "du -h --max-depth=1 vendor | sort -rh" } ]
pipeline
du
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "recursively search /home/deploy for 'critical' and show line numbers" }, { "role": "assistant", "content": "grep -rn 'critical' /home/deploy" } ]
single
grep
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "List svc-app's activity, headerless." }, { "role": "assistant", "content": "w -h svc-app" } ]
single
w
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Given settings.log, sort it and drop duplicate lines." }, { "role": "assistant", "content": "cat settings.log | sort -u" } ]
pipeline
sort
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "I need a preflight check that ENV, REDIS_URL and API_KEY exist in the environment." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nfor var in ENV REDIS_URL API_KEY;...
script
env
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "I need a bash script that compresses each file with gzip for all .js files under /opt/app." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=/opt/app\nfor f in \"...
script
gzip
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "What are the 10 largest subdirectories of modules?" }, { "role": "assistant", "content": "du -h modules/* 2>/dev/null | sort -rh | head -n 10" ...
pipeline
du
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Find all .css files under tmp." }, { "role": "assistant", "content": "find tmp -type f -name '*.css'" } ]
single
find
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Is the redis service currently active?" }, { "role": "assistant", "content": "systemctl is-active redis" } ]
single
systemctl
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "recursively search templates for 'traceback' and show line numbers" }, { "role": "assistant", "content": "grep -rn 'traceback' templates" } ]
single
grep
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "I need a retry wrapper around connection to registry.local:5432: 3 attempts, 3s apart." }, { "role": "assistant", "content": "#!/usr/bin/env bash...
script
bash
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Filter netstat for connections to or from git.internal." }, { "role": "assistant", "content": "netstat -tn | grep git.internal" } ]
single
netstat
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "which directories under bin are eating the most space?" }, { "role": "assistant", "content": "du -h --max-depth=1 bin | sort -rh" } ]
pipeline
du
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "replace tabs with commas in auth.ini and write to auth.ini.csv" }, { "role": "assistant", "content": "sed 's/\\t/,/g' auth.ini > auth.ini.csv" } ]
pipeline
sed
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Write a watchdog loop that checks every 10s and only alerts once when disk passes 75%." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail...
script
while
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show the top 25 most frequent values in field 4 of the whitespace-separated file worker.log." }, { "role": "assistant", "content": "awk '{print $...
pipeline
awk
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "I need to follow the fail2ban journal but only show lines mentioning 'not found'." }, { "role": "assistant", "content": "journalctl -u fail2ban -f | grep --line-buf...
pipeline
journalctl
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Create a script that accepts --level (-l), --output (-o) and --name (-n) via getopts, with a usage message." }, { "role": "assistant", "content": "#!/usr/bin/env ba...
script
getopts
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "I want a cleanup script for logs that purges .bak files older than 180 days." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ntarget=logs\nage=180\n[ -d \"$target\" ...
script
find
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Abbreviated session info for alice." }, { "role": "assistant", "content": "w -s alice" } ]
single
w
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "I need per-database MySQL backups written to /mnt/backup and pruned after 5 days." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndes...
script
mysqldump
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "what's the load average and uptime?" }, { "role": "assistant", "content": "uptime" } ]
single
uptime
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Clean up /var/log: remove .log files not modified in 1 days, recording each deletion." }, { "role": "assistant", "content": "#!/usr/bin/env bash...
script
find
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Count how many files are in media." }, { "role": "assistant", "content": "ls -1 media | wc -l" } ]
pipeline
ls
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Count total lines across all .txt files in /home/alice." }, { "role": "assistant", "content": "find /home/alice -type f -name '*.txt' -print0 | xargs -0 cat | wc -l" } ]
pipeline
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Edit changelog.json in place, replacing 'cron' with 'warning'." }, { "role": "assistant", "content": "sed -i 's/cron/warning/g' changelog.json" } ]
single
sed
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "How do I list the PIDs of python sorted by memory use?" }, { "role": "assistant", "content": "ps -C python -o pid=,rss= --sort=-rss" } ]
pipeline
ps
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Change the owner of users.sh to operator." }, { "role": "assistant", "content": "sudo chown operator users.sh" } ]
single
chown