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": "make a bzip2-compressed tarball of fixtures" }, { "role": "assistant", "content": "tar -cjf fixtures.tar.bz2 fixtures" } ]
single
tar
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Find all .cache files under tmp." }, { "role": "assistant", "content": "find tmp -type f -name '*.cache'" } ]
single
find
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Fetch JSON from https://auth.local/api/users and pretty-print it with jq." }, { "role": "assistant", "content": "curl -s https://auth.local/api/u...
pipeline
curl
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Give me a frequency tally of column 9 in gateway.log and show the 5 biggest." }, { "role": "assistant", "content": "cut -d, -f9 gateway.log | sort | uniq -c | sort ...
pipeline
cut
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Fetch JSON from https://backup.local/api/users and pretty-print it with jq." }, { "role": "assistant", "content": "curl -s https://backup.local/api/users | jq ." } ]
pipeline
curl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a shell script that parses -f (file), -n (count) and -v (verbose) options with getopts." }, { "role": "assistant", "content": "#!/usr/bin/env ba...
script
getopts
[ { "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 5 rounds." }, { "role": "assistant", "content": "vmstat -S M 2 5" } ]
single
vmstat
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Change the owner of invoice.conf to carol." }, { "role": "assistant", "content": "sudo chown carol invoice.conf" } ]
single
chown
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Print only lines 10 through 20 of config.conf." }, { "role": "assistant", "content": "sed -n '10,20p' config.conf" } ]
single
sed
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Read access.yaml, then keep only non-empty lines — as a pipeline." }, { "role": "assistant", "content": "cat access.yaml | grep -v '^$'" } ]
pipeline
grep
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Run the backup script, sending stdout and stderr to nginx-access.log." }, { "role": "assistant", "content": "./backup.sh > nginx-access.log 2>&1" } ...
pipeline
redirection
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Print only lines 10 through 20 of index.log." }, { "role": "assistant", "content": "sed -n '10,20p' index.log" } ]
single
sed
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "What are the disk usage of modules broken down one level deep?" }, { "role": "assistant", "content": "du -h --max-depth=1 modules 2>/dev/null | sort -...
pipeline
du
[ { "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 5 in orders.csv and show the 20 biggest." }, { "role": "assistant", "content": "cut -d, -f5 orders.csv | sort...
pipeline
cut
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Bump process 2128 to a higher priority (nice -5). Requires root." }, { "role": "assistant", "content": "sudo renice -n -5 -p 2128" } ]
single
renice
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Parse command-line flags -d (dir), -i (input) and -o (output) using getopts and validate that -d is provided." }, { "role": "assistant", "content...
script
getopts
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "What are the 20 largest subdirectories of vendor?" }, { "role": "assistant", "content": "du -h vendor/* 2>/dev/null | 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": "get the 5 most common words in order.ini" }, { "role": "assistant", "content": "cat order.ini | tr ' ' '\\n' | sort | uniq -c | sort -nr | head -...
pipeline
sort
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Download https://db01.service.io/file.zip and save it with its remote name." }, { "role": "assistant", "content": "curl -O https://db01.service.i...
single
curl
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show me how to count 'throttled' occurrences in the sshd journal today." }, { "role": "assistant", "content": "journalctl -u sshd --since today -...
pipeline
journalctl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Test if results.png is present and has content; report missing, empty, or its line count." }, { "role": "assistant", "content": "#!/usr/bin/env bash\n...
script
if
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "How do I show the top 5 processes by CPU usage?" }, { "role": "assistant", "content": "ps aux --sort=-%cpu | head -n 6" } ]
pipeline
ps
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "List the 5 largest subdirectories of /data/uploads." }, { "role": "assistant", "content": "du -h /data/uploads/* 2>/dev/null | sort -rh | head -n...
pipeline
du
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "strip leading whitespace from every line of output.tsv and save to clean.txt" }, { "role": "assistant", "content": "sed 's/^[[:space:]]*//' outpu...
pipeline
sed
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Write a backup script that xz-compresses /opt/app into a timestamped tarball under /var/backups and keeps only the 5 newest." }, { "role": "assistant...
script
tar
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "I need to count 'OutOfMemory' occurrences in the prometheus journal today." }, { "role": "assistant", "content": "journalctl -u prometheus --since today --no-pager ...
pipeline
journalctl
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Parse command-line flags -t (tag), -p (port) and -n (name) using getopts and validate that -t is provided." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ntag=\"\";...
script
getopts
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Read inventory.log, then sort it and drop duplicate lines — as a pipeline." }, { "role": "assistant", "content": "cat inventory.log | sort -u" } ]
pipeline
sort
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "How do I show the top 10 processes by CPU usage?" }, { "role": "assistant", "content": "ps aux --sort=-%cpu | head -n 11" } ]
pipeline
ps
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Parse command-line flags -p (port), -n (name) and -o (output) using getopts and validate that -p is provided." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nport=\...
script
getopts
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "list only the .xml files in /home/alice" }, { "role": "assistant", "content": "ls /home/alice | grep '\\.xml$'" } ]
pipeline
ls
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "How do I total the resident memory of all gunicorn processes in MB?" }, { "role": "assistant", "content": "ps -C gunicorn -o rss= | awk '{s+=$1} END{print s/1024 \" MB\"}'" } ]
pipeline
ps
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a loop that restarts these services in order: prometheus nginx docker." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipe...
script
for
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Write a Bash script that accepts --dir (-d), --count (-c) and --input (-i) via getopts, with a usage message." }, { "role": "assistant", "content...
script
getopts
[ { "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 9 in users.tsv and show the 25 biggest." }, { "role": "assistant", "content": "awk '{print $9}' users.tsv | s...
pipeline
awk
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Count how many mysqld processes are running." }, { "role": "assistant", "content": "pgrep -c mysqld" } ]
pipeline
pgrep
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show me how to follow the systemd-networkd journal but only show lines mentioning 'not found'." }, { "role": "assistant", "content": "journalctl ...
pipeline
journalctl
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Fail fast if any of REDIS_URL, DB_HOST, API_KEY is unset — write it as a bash guard." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nfor var in REDIS_URL DB_HOST AP...
script
env
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Count how many files are in templates." }, { "role": "assistant", "content": "ls -1 templates | wc -l" } ]
pipeline
ls
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "List nginx's activity, headerless." }, { "role": "assistant", "content": "w -h nginx" } ]
single
w
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Parse report.csv 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": "Set access.jpg to permissions 644." }, { "role": "assistant", "content": "chmod 644 access.jpg" } ]
single
chmod
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Show the last 20 lines containing 'corrupt' in api.log." }, { "role": "assistant", "content": "grep 'corrupt' api.log | tail -n 20" } ]
pipeline
grep
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Case-insensitively find 'ERROR' in syslog.log." }, { "role": "assistant", "content": "grep -i 'ERROR' syslog.log" } ]
single
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "For each .log file under /home/deploy, 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 Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Count total lines across all .zip files in /etc/apache2." }, { "role": "assistant", "content": "find /etc/apache2 -type f -name '*.zip' -print0 | xargs -0 cat | wc ...
pipeline
find
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Remove write permission for group and others on manifest.png." }, { "role": "assistant", "content": "chmod go-w manifest.png" } ]
single
chmod
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Make response.jpg executable." }, { "role": "assistant", "content": "chmod +x response.jpg" } ]
single
chmod
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write me a script that checks whether postgres is running and starts it if not." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nproc=postgres\nif pgrep -x \"$proc\"...
script
if
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Take customer.conf and count each unique line, most common first." }, { "role": "assistant", "content": "cat customer.conf | sort | uniq -c | sort -nr" } ]
pipeline
uniq
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Delete the first line of payload.yaml in place." }, { "role": "assistant", "content": "sed -i '1d' payload.yaml" } ]
single
sed
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Restart the rabbitmq service." }, { "role": "assistant", "content": "sudo systemctl restart rabbitmq" } ]
single
systemctl
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Copy config.json into the config directory." }, { "role": "assistant", "content": "cp config.json config/" } ]
single
cp
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show established connections on port 9000." }, { "role": "assistant", "content": "lsof -i :9000 -sTCP:ESTABLISHED" } ]
single
lsof
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Abbreviated session info for operator." }, { "role": "assistant", "content": "w -s operator" } ]
single
w
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Create a gzip-compressed archive of the public directory." }, { "role": "assistant", "content": "tar -czf public.tar.gz public" } ]
single
tar
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Write an if that checks connectivity to staging.service.io with a single ping." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nhost=s...
script
if
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "What are the 20 largest subdirectories of backup?" }, { "role": "assistant", "content": "du -h backup/* 2>/dev/null | 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": "Create the static directory if needed and then cd into it." }, { "role": "assistant", "content": "mkdir -p static && cd static" } ]
pipeline
chain
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "For archive.md, show just the first line." }, { "role": "assistant", "content": "head -n 1 archive.md" } ]
single
head
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "display invoice.conf showing tabs and line endings" }, { "role": "assistant", "content": "cat -A invoice.conf" } ]
single
cat
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Count how many unique IP-like first fields appear in worker.log." }, { "role": "assistant", "content": "awk '{print $1}' worker.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": "Write a start/stop/restart control script for the memcached service using a case statement." }, { "role": "assistant", "content": "#!/usr/bin/en...
script
case
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Process all .sh files under backups with optipng using 8 parallel workers via xargs." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\n...
script
xargs
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Extract just the email addresses from payment.md." }, { "role": "assistant", "content": "grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' payment.md | sort -u" } ]
pipeline
sed
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Fail fast if any of API_KEY, DB_PASS, REDIS_URL is unset — write it as a bash guard." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\n...
script
env
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Process all .txt files under logs with optipng using 8 parallel workers via xargs." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=logs\nfind \"$dir\" -type f -...
script
xargs
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Copy build.csv into the fixtures directory." }, { "role": "assistant", "content": "cp build.csv fixtures/" } ]
single
cp
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "strip leading whitespace from every line of debug.txt and save to clean.txt" }, { "role": "assistant", "content": "sed 's/^[[:space:]]*//' debug.txt >...
pipeline
sed
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Given credentials.yaml, count each unique line, most common first." }, { "role": "assistant", "content": "cat credentials.yaml | sort | uniq -c | sort -nr" } ]
pipeline
uniq
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Install zip with pacman." }, { "role": "assistant", "content": "sudo pacman -S zip" } ]
single
pacman
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "List just the filenames under /home/alice that contain 'Connection refused'." }, { "role": "assistant", "content": "grep -rl 'Connection refused'...
single
grep
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Count how often each column-4 value appears in syslog; show the 5 most common." }, { "role": "assistant", "content": "awk '{print $4}' syslog | ...
pipeline
awk
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Run the backup script, sending stdout and stderr to server.log." }, { "role": "assistant", "content": "./backup.sh > server.log 2>&1" } ]
pipeline
redirection
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Rename payment.js to payment.js.old without overwriting if the target already exists." }, { "role": "assistant", "content": "mv -n payment.js pa...
single
mv
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "From build.conf, count the lines." }, { "role": "assistant", "content": "cat build.conf | wc -l" } ]
pipeline
wc
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show the type and location of curl." }, { "role": "assistant", "content": "type -a curl" } ]
single
which
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Read config.conf, then count the lines — as a pipeline." }, { "role": "assistant", "content": "cat config.conf | wc -l" } ]
pipeline
wc
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Fetch JSON from https://mail.example.org/api/users and pretty-print it with jq." }, { "role": "assistant", "content": "curl -s https://mail.example.org/api/users | ...
pipeline
curl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Remove write permission for group and others on results.zip." }, { "role": "assistant", "content": "chmod go-w results.zip" } ]
single
chmod
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a script that runs checksum with sha256sum on every .zip file in /data/uploads, 2 jobs in parallel." }, { "role": "assistant", "content": "#!/us...
script
xargs
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Print everything in worker.log except the last 200 lines." }, { "role": "assistant", "content": "head -n -200 worker.log" } ]
single
head
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "List the disk usage of build broken down one level deep." }, { "role": "assistant", "content": "du -h --max-depth=1 build 2>/dev/null | sort -rh"...
pipeline
du
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Parse command-line flags -i (input), -n (name) and -o (output) using getopts and validate that -i is provided." }, { "role": "assistant", "content": "...
script
getopts
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show the 10 largest subdirectories in fixtures." }, { "role": "assistant", "content": "du -h fixtures/* | sort -rh | head -n 10" } ]
pipeline
du
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Process all .bak files under /opt/app with gzip using 4 parallel workers via xargs." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nd...
script
xargs
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Write a shell script that runs optipng on every .py file in data, 8 jobs in parallel." }, { "role": "assistant", "content": "#!/usr/bin/env bash\...
script
xargs
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "strip leading whitespace from every line of debug.json and save to clean.txt" }, { "role": "assistant", "content": "sed 's/^[[:space:]]*//' debug.json...
pipeline
sed
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a small script that dumps every PostgreSQL database into its own gzip file under /data/backup, keeping 7 days." }, { "role": "assistant", "conte...
script
pg_dump
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "I need getopts handling for three options: -i, -n and -l; print usage on bad input." }, { "role": "assistant", "content": "#!/usr/bin/env bash\n...
script
getopts
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Copy users.png to lib/ but keep the original timestamps and permissions." }, { "role": "assistant", "content": "cp -p users.png lib/" } ]
single
cp
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "I need to count 'segfault' occurrences in the docker journal today." }, { "role": "assistant", "content": "journalctl -u docker --since today --no-pag...
pipeline
journalctl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a Bash script that refuses to run unless it's executed as root." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ni...
script
if
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Count 'failed' occurrences in the systemd-networkd journal today." }, { "role": "assistant", "content": "journalctl -u systemd-networkd --since t...
pipeline
journalctl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "I need to count 'null' occurrences in the mongod journal today." }, { "role": "assistant", "content": "journalctl -u mongod --since today --no-pager |...
pipeline
journalctl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Find all .yaml files under /var/cache." }, { "role": "assistant", "content": "find /var/cache -type f -name '*.yaml'" } ]
single
find
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "I need to count 'permission denied' occurrences in the chronyd journal today." }, { "role": "assistant", "content": "journalctl -u chronyd --since today --no-pager ...
pipeline
journalctl
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Count how many lines in audit.log match 'deprecated'." }, { "role": "assistant", "content": "grep -c 'deprecated' audit.log" } ]
single
grep
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "compress api.log but keep the original file too" }, { "role": "assistant", "content": "gzip -k api.log" } ]
single
gzip
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Give me a frequency tally of column 2 in output.log and show the 10 biggest." }, { "role": "assistant", "content": "cut -d, -f2 output.log | sor...
pipeline
cut