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": "Print only lines 10 through 20 of transaction.yaml." }, { "role": "assistant", "content": "sed -n '10,20p' transaction.yaml" } ]
single
sed
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show nginx's sessions without the header." }, { "role": "assistant", "content": "w -h nginx" } ]
single
w
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Find the biggest files under reports." }, { "role": "assistant", "content": "du -ah reports | 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": "Process all .old files under /srv/data with optipng using 8 parallel workers via xargs." }, { "role": "assistant", "content": "#!/usr/bin/env bas...
script
xargs
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "strip leading whitespace from every line of schema.json and save to clean.txt" }, { "role": "assistant", "content": "sed 's/^[[:space:]]*//' schema.json > clean.txt" } ]
pipeline
sed
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show detailed per-device iostat, 10s apart, 20 times." }, { "role": "assistant", "content": "iostat -x 10 20" } ]
single
iostat
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "which directories under backup are eating the most space?" }, { "role": "assistant", "content": "du -h --max-depth=1 backup | sort -rh" } ]
pipeline
du
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Which processes have files open in fixtures?" }, { "role": "assistant", "content": "lsof +D fixtures" } ]
single
lsof
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Use a while loop to print the numbers 1 to 10, but only the even ones." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ni=2\nmax=10\nwhile [ \"$i\" -le \"$max\" ]; d...
script
while
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Count how many unique IP-like first fields appear in app.log." }, { "role": "assistant", "content": "awk '{print $1}' app.log | sort | uniq -c | sort ...
pipeline
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "I need a rotating backup: archive backups into /var/backups with bzip2, retain 10 copies." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipef...
script
tar
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Which processes have files open in /mnt/data?" }, { "role": "assistant", "content": "lsof +D /mnt/data" } ]
single
lsof
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show the top 20 most frequent values in field 4 of the whitespace-separated file server.log." }, { "role": "assistant", "content": "awk '{print $4}' server.log | so...
pipeline
awk
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Follow live logs for rabbitmq." }, { "role": "assistant", "content": "journalctl -u rabbitmq -f" } ]
single
journalctl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "List connections using port 27017 as source or destination." }, { "role": "assistant", "content": "ss -tn 'sport = :27017 or dport = :27017'" ...
single
ss
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Count how many files are in uploads." }, { "role": "assistant", "content": "ls -1 uploads | wc -l" } ]
pipeline
ls
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "I/O stats in MB/s every 1s for 10 samples." }, { "role": "assistant", "content": "iostat -m 1 10" } ]
single
iostat
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show a recursive listing of tmp." }, { "role": "assistant", "content": "ls -R tmp" } ]
single
ls
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Give me a script that iterates over /var/www/*.bak and makes each file read-only." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nse...
script
chmod
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Give 'python train.py' a boosted CPU priority of -10." }, { "role": "assistant", "content": "sudo nice -n -10 python train.py" } ]
single
nice
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Sort credentials.json numerically in reverse order." }, { "role": "assistant", "content": "sort -nr credentials.json" } ]
single
sort
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Bump process 7466 to a higher priority (nice -5). Requires root." }, { "role": "assistant", "content": "sudo renice -n -5 -p 7466" } ]
single
renice
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show the DNS domain name." }, { "role": "assistant", "content": "hostname -d" } ]
single
hostname
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Show the 10 largest subdirectories in /var/log." }, { "role": "assistant", "content": "du -h /var/log/* | sort -rh | head -n 10" } ]
pipeline
du
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Poll memory in MB every 5s, 5 times." }, { "role": "assistant", "content": "free -m -s 5 -c 5" } ]
single
free
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show the systemd journal for the prometheus service." }, { "role": "assistant", "content": "journalctl -u prometheus" } ]
single
journalctl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "show top output for just the sshd processes" }, { "role": "assistant", "content": "top -p $(pgrep -d, sshd)" } ]
single
top
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show connections on port 25." }, { "role": "assistant", "content": "netstat -anp | grep :25" } ]
single
netstat
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Count how many lines in request.log match 'corrupt'." }, { "role": "assistant", "content": "grep -c 'corrupt' request.log" } ]
single
grep
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Find files in /var/cache larger than 1G." }, { "role": "assistant", "content": "find /var/cache -type f -size 1G" } ]
single
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a shell script that runs checksum with sha256sum on every .png file in /var/www, 4 jobs in parallel." }, { "role": "assistant", "content": "#!/u...
script
xargs
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "make a bzip2-compressed tarball of media" }, { "role": "assistant", "content": "tar -cjf media.tar.bz2 media" } ]
single
tar
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Restart the prometheus service." }, { "role": "assistant", "content": "sudo systemctl restart prometheus" } ]
single
systemctl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "cut out the first 10 characters of each line in data.csv" }, { "role": "assistant", "content": "cut -c1-10 data.csv" } ]
single
cut
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Is anything listening on port 27017?" }, { "role": "assistant", "content": "ss -tlnp sport = :27017" } ]
single
ss
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Find empty files in media." }, { "role": "assistant", "content": "find media -type f -empty" } ]
single
find
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "I need getopts handling for three options: -o, -i and -l; print usage on bad input." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\no...
script
getopts
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Show deploy's process tree with PIDs." }, { "role": "assistant", "content": "pstree -p deploy" } ]
single
pstree
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Give me a frequency tally of column 5 in syslog and show the 5 biggest." }, { "role": "assistant", "content": "cut -d, -f5 syslog | sort | uniq -c | sort -nr | head...
pipeline
cut
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Display the children of process 8202." }, { "role": "assistant", "content": "pstree -p 8202" } ]
single
pstree
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Copy results.zip into the migrations directory." }, { "role": "assistant", "content": "cp results.zip migrations/" } ]
single
cp
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "show apache2 logs from the last 21 days" }, { "role": "assistant", "content": "journalctl -u apache2 --since '21 days ago'" } ]
single
journalctl
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "What's bound to port 11211?" }, { "role": "assistant", "content": "lsof -i :11211" } ]
single
lsof
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "move all .yaml files into the bin directory" }, { "role": "assistant", "content": "mv *.yaml bin/" } ]
single
mv
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Display the ancestors of process 2455 as a tree." }, { "role": "assistant", "content": "pstree -s 2455" } ]
single
pstree
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Delete the first line of invoice.conf in place." }, { "role": "assistant", "content": "sed -i '1d' invoice.conf" } ]
single
sed
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "I need to show the last 10 lines containing 'retry' in request.log." }, { "role": "assistant", "content": "grep 'retry' request.log | tail -n 10" } ...
pipeline
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Bump process 2537 to a higher priority (nice -5). Requires root." }, { "role": "assistant", "content": "sudo renice -n -5 -p 2537" } ]
single
renice
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Copy catalog.xml into scripts only if it's newer than what's there." }, { "role": "assistant", "content": "cp -u catalog.xml scripts/" } ]
single
cp
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Back up /var/lib/app to /backup as a dated gzip archive, pruning all but the last 7 backups." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pi...
script
tar
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "compress worker.log but keep the original file too" }, { "role": "assistant", "content": "gzip -k worker.log" } ]
single
gzip
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Give 'tar -czf backup.tar.gz /home/deploy' a boosted CPU priority of -10." }, { "role": "assistant", "content": "sudo nice -n -10 tar -czf backup.tar....
single
nice
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "From test.tsv, show the last 15 lines." }, { "role": "assistant", "content": "cat test.tsv | tail -n 15" } ]
pipeline
tail
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Parse command-line flags -l (level), -d (dir) and -n (name) using getopts and validate that -l is provided." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nlevel=\"...
script
getopts
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "I need a retry wrapper around curl to https://cdn.local/health: 4 attempts, 5s apart." }, { "role": "assistant", "content": "#!/usr/bin/env bash...
script
curl
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Print the kernel ring buffer with real timestamps." }, { "role": "assistant", "content": "dmesg -T" } ]
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 proxy.internal." }, { "role": "assistant", "content": "netstat -tn | grep proxy.internal" } ]
single
netstat
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "delete all digits from audit.ini" }, { "role": "assistant", "content": "tr -d '0-9' < audit.ini" } ]
single
tr
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Rank the values of column 5 in users.tsv by frequency, highest first, top 5 only." }, { "role": "assistant", "content": "cut -d, -f5 users.tsv | sort | uniq -c | so...
pipeline
cut
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Count how many files are in include." }, { "role": "assistant", "content": "ls -1 include | wc -l" } ]
pipeline
ls
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Sample vmstat 5 times at a 5-second interval." }, { "role": "assistant", "content": "vmstat 5 5" } ]
single
vmstat
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Report virtual-memory statistics every 5 seconds, 5 times." }, { "role": "assistant", "content": "vmstat 5 5" } ]
single
vmstat
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Launch 'gzip huge.log' at reduced priority (19)." }, { "role": "assistant", "content": "nice -n 19 gzip huge.log" } ]
single
nice
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show the process tree for user bob." }, { "role": "assistant", "content": "pstree bob" } ]
single
pstree
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Find files in /usr/local/bin larger than 100M." }, { "role": "assistant", "content": "find /usr/local/bin -type f -size 100M" } ]
single
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Run vmstat every 10s and stop after 10 samples." }, { "role": "assistant", "content": "vmstat 10 10" } ]
single
vmstat
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "follow redirects when fetching https://registry.service.io" }, { "role": "assistant", "content": "curl -L https://registry.service.io" } ]
single
curl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Lower the priority of process 8995 to nice value 10." }, { "role": "assistant", "content": "renice -n 10 -p 8995" } ]
single
renice
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Trim uptime down to just how long it's been up." }, { "role": "assistant", "content": "uptime | cut -d, -f1" } ]
single
uptime
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "From catalog.ini, strip trailing whitespace." }, { "role": "assistant", "content": "cat catalog.ini | sed 's/[[:space:]]*$//'" } ]
pipeline
sed
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show a recursive listing of /usr/local/bin." }, { "role": "assistant", "content": "ls -R /usr/local/bin" } ]
single
ls
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Display the children of process 6783." }, { "role": "assistant", "content": "pstree -p 6783" } ]
single
pstree
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Retry curl to https://mail.internal/health at most 3 times with a 3-second backoff, failing loudly if it never succeeds." }, { "role": "assistant", "c...
script
curl
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "show grafana-server logs from the last 30 days" }, { "role": "assistant", "content": "journalctl -u grafana-server --since '30 days ago'" } ]
single
journalctl
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Run vmstat with MB units every 5 seconds for 10 rounds." }, { "role": "assistant", "content": "vmstat -S M 5 10" } ]
single
vmstat
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "list the distinct error messages in gc.log" }, { "role": "assistant", "content": "grep -i error gc.log | sort -u" } ]
pipeline
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Write me a script that accepts --tag (-t), --port (-p) and --count (-c) via getopts, with a usage message." }, { "role": "assistant", "content": "#!/usr/bin/env bas...
script
getopts
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Write a simple log-rotation script that renames app.log to app.log.1..5 and truncates the current one." }, { "role": "assistant", "content": "#!/...
script
for
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Display operator's processes as a tree." }, { "role": "assistant", "content": "pstree operator" } ]
single
pstree
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Background 'dd if=/dev/zero of=test.img bs=1M count=1024' at nice level 19." }, { "role": "assistant", "content": "nice -n 19 dd if=/dev/zero of=test.img bs=1M count=1024 &" } ]
single
nice
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Show the top 5 processes by memory usage." }, { "role": "assistant", "content": "ps aux --sort=-%mem | head -n 6" } ]
pipeline
ps
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Find all .zip files under /home/deploy and delete them. (Careful: destructive.)" }, { "role": "assistant", "content": "find /home/deploy -type f ...
pipeline
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show the systemd journal for the rabbitmq service." }, { "role": "assistant", "content": "journalctl -u rabbitmq" } ]
single
journalctl
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Report virtual memory statistics every 3 seconds, 5 times." }, { "role": "assistant", "content": "vmstat 3 5" } ]
single
vmstat
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "I need a preflight check that API_KEY, REDIS_URL and DB_HOST exist in the environment." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset...
script
env
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Fail fast if any of REDIS_URL, DB_PASS, PORT is unset — write it as a bash guard." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nfor var in REDIS_URL DB_PASS PORT;...
script
env
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Take changelog.md and sort it and drop duplicate lines." }, { "role": "assistant", "content": "cat changelog.md | sort -u" } ]
pipeline
sort
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Loop through the .md files in /home/alice and prints the line count of each file — write it as a proper script." }, { "role": "assistant", "content": ...
script
wc
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Given metrics.log, convert everything to uppercase." }, { "role": "assistant", "content": "cat metrics.log | 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": "which containerd log lines mention 'failed'?" }, { "role": "assistant", "content": "journalctl -u containerd --no-pager | grep -i failed" } ]
pipeline
journalctl
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Which processes have files open in static?" }, { "role": "assistant", "content": "lsof +D static" } ]
single
lsof
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Bump process 9032 to a higher priority (nice -5). Requires root." }, { "role": "assistant", "content": "sudo renice -n -5 -p 9032" } ]
single
renice
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Kill all celery processes by name." }, { "role": "assistant", "content": "pkill celery" } ]
single
pkill
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "show docker logs from the last 21 days" }, { "role": "assistant", "content": "journalctl -u docker --since '21 days ago'" } ]
single
journalctl
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show current memory usage in human-readable units." }, { "role": "assistant", "content": "free -h" } ]
single
free
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Find the most recently modified file in logs." }, { "role": "assistant", "content": "ls -t logs | head -n 1" } ]
pipeline
ls
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "List only directories inside releases." }, { "role": "assistant", "content": "ls -d releases/*/" } ]
single
ls
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "I need a retry wrapper around git fetch from origin: 10 attempts, 2s apart." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nmax=10\nd...
script
git
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show the last 20 warning entries for redis." }, { "role": "assistant", "content": "journalctl -u redis -p warning -n 20 --no-pager" } ]
pipeline
journalctl
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "strip leading whitespace from every line of error.json and save to clean.txt" }, { "role": "assistant", "content": "sed 's/^[[:space:]]*//' error.json > clean.txt" } ]
pipeline
sed