Dataset Viewer
Auto-converted to Parquet Duplicate
messages
listlengths
3
3
category
stringclasses
3 values
utility
stringclasses
182 values
variant_group
stringlengths
16
16
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Set build.bak to permissions 644." }, { "role": "assistant", "content": "chmod 644 build.bak" } ]
single
chmod
9b0c227f8e182a5e
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Set build.bak to permissions 644." }, { "role": "assistant", "content": "chmod u=rw,go=r build.bak" } ]
single
chmod
9b0c227f8e182a5e
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Extract the idle-CPU column from a vmstat snapshot." }, { "role": "assistant", "content": "vmstat 1 2 | tail -n1 | awk '{print $15}'" } ]
pipeline
vmstat
6d1ebc51a3c79477
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Watch active/inactive memory with vmstat every 1s." }, { "role": "assistant", "content": "vmstat -a 1" } ]
single
vmstat
8f4a83f9df55dac9
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a start/stop/restart control script for the docker service using a case statement." }, { "role": "assistant", "content": "#!/usr/bin/env bash\ns...
script
case
f2150077c7dbbab8
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "List dave's activity, headerless." }, { "role": "assistant", "content": "w -h dave" } ]
single
w
ab7d4f1695a950cc
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show the kernel routing table numerically." }, { "role": "assistant", "content": "netstat -rn" } ]
single
netstat
3b514fb79011c846
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Lower the priority of process 9404 to nice value 10." }, { "role": "assistant", "content": "renice -n 10 -p 9404" } ]
single
renice
3b5514b0a1e651b9
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Run 'tar -czf backup.tar.gz /home/deploy' niced to 5 in the background." }, { "role": "assistant", "content": "nice -n 5 tar -czf backup.tar.gz ...
single
nice
a94903dff3bedde8
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show a one-shot CPU and disk I/O summary." }, { "role": "assistant", "content": "iostat" } ]
single
iostat
b28537e1bef40b2b
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Lower the priority of process 9368 to nice value 10." }, { "role": "assistant", "content": "renice -n 10 -p 9368" } ]
single
renice
f983ea0af1f1da5a
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Benchmark multiple algorithms in parallel using all available CPU cores." }, { "role": "assistant", "content": "openssl speed -multi $(nproc)" } ]
pipeline
openssl
4d1d0afa50beb4d7
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "List open files owned by alice." }, { "role": "assistant", "content": "lsof -u alice" } ]
single
lsof
bdb0654d8fc9f4f9
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Report CPU stats via iostat -c." }, { "role": "assistant", "content": "iostat -c" } ]
single
iostat
e879666821380518
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Display all processes as a hierarchy." }, { "role": "assistant", "content": "pstree" } ]
single
pstree
240469869021feb6
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Start a backup with tar at the lowest CPU priority." }, { "role": "assistant", "content": "nice -n 19 tar -czf backup.tar.gz /home/deploy" } ]
single
nice
3882760148cd3f47
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show every network socket in use." }, { "role": "assistant", "content": "lsof -i" } ]
single
lsof
9b7384a175f998cd
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "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
c576840f4778e26a
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Show the 10 largest subdirectories in /srv/www." }, { "role": "assistant", "content": "du --human-readable /srv/www/* | sort -rh | head -n 10" } ]
pipeline
du
c576840f4778e26a
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "extract backup.tar.gz into the modules folder" }, { "role": "assistant", "content": "tar -xzf backup.tar.gz -C modules" } ]
single
tar
497f2b0ccbcd2c8d
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "extract backup.tar.gz into the modules folder" }, { "role": "assistant", "content": "tar xzf backup.tar.gz -C modules" } ]
single
tar
497f2b0ccbcd2c8d
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "extract backup.tar.gz into the modules folder" }, { "role": "assistant", "content": "tar -zxf backup.tar.gz -C modules" } ]
single
tar
497f2b0ccbcd2c8d
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "How many lines in worker.log mention '502'?" }, { "role": "assistant", "content": "grep -c '502' worker.log | cat" } ]
pipeline
grep
04b94981ea370b87
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "How many lines in worker.log mention '502'?" }, { "role": "assistant", "content": "grep --count '502' worker.log | cat" } ]
pipeline
grep
04b94981ea370b87
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "When the method returns or an exception occurs, observe the count property of the second parameter." }, { "role": "assistant", "content": "watch dropp...
single
watch
8b941100e6c1aea0
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Back up /mnt/storage to /backup as a dated bzip2 archive, pruning all but the last 14 backups." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nsrc=/mnt/storage\ndes...
script
tar
3b1487922e316b9a
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Execute and print the result of one statement, then exit." }, { "role": "assistant", "content": "echo \"credentials.html\" | yacas -p -c /dev/stdin" ...
pipeline
echo
c9c5374e97383380
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "extract backup.tar.gz into the assets folder" }, { "role": "assistant", "content": "tar -xzf backup.tar.gz -C assets" } ]
single
tar
933ef58998e30998
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "extract backup.tar.gz into the assets folder" }, { "role": "assistant", "content": "tar xzf backup.tar.gz -C assets" } ]
single
tar
933ef58998e30998
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "extract backup.tar.gz into the assets folder" }, { "role": "assistant", "content": "tar -zxf backup.tar.gz -C assets" } ]
single
tar
933ef58998e30998
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "How much RAM is free right now?" }, { "role": "assistant", "content": "free -h" } ]
single
free
198f64efe2e1666e
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Execute a command from `stdin`." }, { "role": "assistant", "content": "echo \"manifest.txt\" | batch" } ]
pipeline
echo
ead9b0deb1154110
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show raw uptime in seconds from /proc." }, { "role": "assistant", "content": "cat /proc/uptime" } ]
single
uptime
e9e22103084757f7
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Output the value of multiple keys as a new JSON object (assuming the input JSON has the keys `key_name1` and `key_name2`)." }, { "role": "assistant", "content": "ca...
pipeline
cat
6b7b579f41a9f86f
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Lis[t] the contents of a tar [f]ile [v]erbosely." }, { "role": "assistant", "content": "tar tvf customer.bak" } ]
single
tar
d0e774c5926a656b
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Timestamped vmstat every 5s for 10 samples." }, { "role": "assistant", "content": "vmstat -t 5 10" } ]
single
vmstat
f35e14e2bec7d087
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Find the biggest files under /mnt/data." }, { "role": "assistant", "content": "du -ah /mnt/data | sort -rh | head -n 20" } ]
pipeline
du
7099b31de037f305
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Find the biggest files under /mnt/data." }, { "role": "assistant", "content": "du -ha /mnt/data | sort -rh | head -n 20" } ]
pipeline
du
7099b31de037f305
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Find the biggest files under /mnt/data." }, { "role": "assistant", "content": "du -a -h /mnt/data | sort -rh | head -n 20" } ]
pipeline
du
7099b31de037f305
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Fetch JSON from https://registry.corp.net/api/users and pretty-print it with jq." }, { "role": "assistant", "content": "curl -s https://registry.corp....
pipeline
curl
dda81a58f1c891b4
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Fetch JSON from https://registry.corp.net/api/users and pretty-print it with jq." }, { "role": "assistant", "content": "curl --silent https://registry.corp.net/api/users | jq ." } ]
pipeline
curl
dda81a58f1c891b4
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Create multiple files with an increasing number." }, { "role": "assistant", "content": "touch response.tmp}" } ]
single
touch
80861dad6bb7ffdb
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "recursively search /data/uploads for 'segfault' and show line numbers" }, { "role": "assistant", "content": "grep -rn 'segfault' /data/uploads" } ]
single
grep
f7484180abc68263
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "recursively search /data/uploads for 'segfault' and show line numbers" }, { "role": "assistant", "content": "grep -nr 'segfault' /data/uploads" } ]
single
grep
f7484180abc68263
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "recursively search /data/uploads for 'segfault' and show line numbers" }, { "role": "assistant", "content": "grep -r -n 'segfault' /data/uploads" } ]
single
grep
f7484180abc68263
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show network interface statistics." }, { "role": "assistant", "content": "netstat -i" } ]
single
netstat
db532f4fd3c924aa
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "list the distinct error messages in metrics.log" }, { "role": "assistant", "content": "grep -i error metrics.log | sort -u" } ]
pipeline
grep
54396429bd6e63c9
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "list the distinct error messages in metrics.log" }, { "role": "assistant", "content": "grep --ignore-case error metrics.log | sort -u" } ]
pipeline
grep
54396429bd6e63c9
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Follow live logs for mongod." }, { "role": "assistant", "content": "journalctl -u mongod -f" } ]
single
journalctl
fa8126d5fa795cb5
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Read JSON from `stdin`." }, { "role": "assistant", "content": "cat credentials.zip | jless" } ]
pipeline
cat
a892e42b9aa679af
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show all journal entries since the last boot." }, { "role": "assistant", "content": "journalctl -b" } ]
single
journalctl
4841d3fe5f9b2d44
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show all journal entries since the last boot." }, { "role": "assistant", "content": "journalctl --boot" } ]
single
journalctl
4841d3fe5f9b2d44
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "What are the 20 largest subdirectories of dist?" }, { "role": "assistant", "content": "du -h dist/* 2>/dev/null | sort -rh | head -n 20" } ]
pipeline
du
25b6765c7f468319
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "What are the 20 largest subdirectories of dist?" }, { "role": "assistant", "content": "du --human-readable dist/* 2>/dev/null | sort -rh | head -n 20" } ]
pipeline
du
25b6765c7f468319
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "copy the whole backup folder to backup_copy recursively" }, { "role": "assistant", "content": "cp -r backup backup_copy" } ]
single
cp
04335db6c63c13a8
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "copy the whole backup folder to backup_copy recursively" }, { "role": "assistant", "content": "cp --recursive backup backup_copy" } ]
single
cp
04335db6c63c13a8
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Show the last 50 lines containing 'denied' in cron.log." }, { "role": "assistant", "content": "grep 'denied' cron.log | tail -n 50" } ]
pipeline
grep
d8551b429f2a8574
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Bump process 6822 to a higher priority (nice -5). Requires root." }, { "role": "assistant", "content": "sudo renice -n -5 -p 6822" } ]
single
renice
a9fe2108515945c1
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Give me the wide free output splitting buffers and cache." }, { "role": "assistant", "content": "free -w" } ]
single
free
43532f5145d0a9c1
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Give me the wide free output splitting buffers and cache." }, { "role": "assistant", "content": "free --wide" } ]
single
free
43532f5145d0a9c1
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "[Interactive] Get a list of files on the remote machine." }, { "role": "assistant", "content": "ls" } ]
single
ls
06482715bd136348
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Output all elements from arrays (or all the values from objects) in JSON or JSON-Lines data from `stdin` to `stdout`." }, { "role": "assistant", ...
pipeline
cat
417faeae55a82347
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Print pstree annotated with process IDs." }, { "role": "assistant", "content": "pstree -p" } ]
single
pstree
e3f023e99b62c673
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "I need to show the last 50 lines containing 'invalid' in auth.log." }, { "role": "assistant", "content": "grep 'invalid' auth.log | tail -n 50" ...
pipeline
grep
81ecdcaddbaaa2af
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show memory usage in gigabytes." }, { "role": "assistant", "content": "free -g" } ]
single
free
966603bb4d3d0987
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Show only kernel error-level messages." }, { "role": "assistant", "content": "dmesg -l err" } ]
single
dmesg
5dd1c13a0f043c2f
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "List all listening ports and the programs using them." }, { "role": "assistant", "content": "netstat -tulpn" } ]
single
netstat
4a582e4b6f427262
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "List logged-in users without the header line." }, { "role": "assistant", "content": "w -h" } ]
single
w
a4d81daab939a6ee
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Show memory usage using powers of 1000 (SI units)." }, { "role": "assistant", "content": "free -h --si" } ]
single
free
961f35914185455a
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Start 'find / -name '*.core'' with nice value 15 so it doesn't hog the CPU." }, { "role": "assistant", "content": "nice -n 15 find / -name '*.core'" } ]
single
nice
227a94dbe17557e7
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Create the docs directory if needed and then cd into it." }, { "role": "assistant", "content": "mkdir -p docs && cd docs" } ]
pipeline
chain
bcfa179749870de0
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Create the docs directory if needed and then cd into it." }, { "role": "assistant", "content": "mkdir --parents docs && cd docs" } ]
pipeline
chain
bcfa179749870de0
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "extract backup.tar.gz into the fixtures folder" }, { "role": "assistant", "content": "tar -xzf backup.tar.gz -C fixtures" } ]
single
tar
fb8129e4b67bca01
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "extract backup.tar.gz into the fixtures folder" }, { "role": "assistant", "content": "tar xzf backup.tar.gz -C fixtures" } ]
single
tar
fb8129e4b67bca01
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "extract backup.tar.gz into the fixtures folder" }, { "role": "assistant", "content": "tar -zxf backup.tar.gz -C fixtures" } ]
single
tar
fb8129e4b67bca01
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Fetch JSON from https://monitor.corp.net/api/users and pretty-print it with jq." }, { "role": "assistant", "content": "curl -s https://monitor.c...
pipeline
curl
143f16e0cda4e399
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Fetch JSON from https://monitor.corp.net/api/users and pretty-print it with jq." }, { "role": "assistant", "content": "curl --silent https://mon...
pipeline
curl
143f16e0cda4e399
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Count error lines in the mariadb journal since yesterday." }, { "role": "assistant", "content": "journalctl -u mariadb --since yesterday | grep ...
pipeline
journalctl
ff05799e4d10053b
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Count error lines in the mariadb journal since yesterday." }, { "role": "assistant", "content": "journalctl --unit mariadb --since yesterday | grep -i...
pipeline
journalctl
ff05799e4d10053b
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Use vmstat's wide output, 5s apart, 5 times." }, { "role": "assistant", "content": "vmstat -w 5 5" } ]
single
vmstat
3f1fdc3ae3a1e626
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Get the bare PID that holds port 9000." }, { "role": "assistant", "content": "lsof -i :9000 -t" } ]
single
lsof
2fbc2dda96d288a7
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Background 'find / -name '*.core'' at nice level 5." }, { "role": "assistant", "content": "nice -n 5 find / -name '*.core' &" } ]
single
nice
8c26f9f80f7683f2
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Extract just the email addresses from output.md." }, { "role": "assistant", "content": "grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' output.md | sort -u" } ]
pipeline
sed
ffcf524be739626c
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Extract just the email addresses from output.md." }, { "role": "assistant", "content": "grep -Eo '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' output.md | sort -u" } ]
pipeline
sed
ffcf524be739626c
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Extract just the email addresses from output.md." }, { "role": "assistant", "content": "grep -o -E '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' output.md | sort -u" } ]
pipeline
sed
ffcf524be739626c
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Set invoice.gz to permissions 644." }, { "role": "assistant", "content": "chmod 644 invoice.gz" } ]
single
chmod
5af758e3d3beae62
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Set invoice.gz to permissions 644." }, { "role": "assistant", "content": "chmod u=rw,go=r invoice.gz" } ]
single
chmod
5af758e3d3beae62
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Give './import.sh' a boosted CPU priority of -5." }, { "role": "assistant", "content": "sudo nice -n -5 ./import.sh" } ]
single
nice
9d95144f5168a250
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "make a bzip2-compressed tarball of vendor" }, { "role": "assistant", "content": "tar -cjf vendor.tar.bz2 vendor" } ]
single
tar
3ca4c4e0cb53cd47
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "make a bzip2-compressed tarball of vendor" }, { "role": "assistant", "content": "tar cjf vendor.tar.bz2 vendor" } ]
single
tar
3ca4c4e0cb53cd47
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "make a bzip2-compressed tarball of vendor" }, { "role": "assistant", "content": "tar -jcf vendor.tar.bz2 vendor" } ]
single
tar
3ca4c4e0cb53cd47
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "extract backup.tar.gz into the vendor folder" }, { "role": "assistant", "content": "tar -xzf backup.tar.gz -C vendor" } ]
single
tar
28bca17b0b1317b8
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "extract backup.tar.gz into the vendor folder" }, { "role": "assistant", "content": "tar xzf backup.tar.gz -C vendor" } ]
single
tar
28bca17b0b1317b8
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "extract backup.tar.gz into the vendor folder" }, { "role": "assistant", "content": "tar -zxf backup.tar.gz -C vendor" } ]
single
tar
28bca17b0b1317b8
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Loop through the .json files in logs and makes a .bak copy of each file — write it as a proper script." }, { "role": "assistant", "content": "#!/usr/b...
script
cp
af3693211f4046a4
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "I need a script that checks a list of required commands (git, curl, jq) are installed before continuing." }, { "role": "assistant", "content": "...
script
command
675ffaf4b1b27228
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Lower the priority of process 9459 to nice value 10." }, { "role": "assistant", "content": "renice -n 10 -p 9459" } ]
single
renice
17f4edc41ebc31c7
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Show me how full each mounted filesystem is, worst first." }, { "role": "assistant", "content": "df -h | awk 'NR>1 {print $5, $6}' | sort -rn" ...
pipeline
df
ee3ced1b50649de3
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show me how full each mounted filesystem is, worst first." }, { "role": "assistant", "content": "df --human-readable | awk 'NR>1 {print $5, $6}' | sor...
pipeline
df
ee3ced1b50649de3
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Which files does user nginx have open?" }, { "role": "assistant", "content": "lsof -u nginx" } ]
single
lsof
e882640e24996ca1
End of preview. Expand in Data Studio

Bash Instruct II — 54,803 verified natural-language → Bash pairs

⚠️ Superseded by Bash Instruct III

III is a corrected rebuild of this dataset with shell antipatterns removed at the generator level (99.8% ShellCheck-clean vs 98.5% here). New work should use III. The two share 92.5% of their (request, command) pairs, so they must never be concatenated. This card is kept for reproducibility and citation of published results.

Bash Instruct II is a synthetic instruction-tuning dataset that maps natural-language requests to correct Bash: single commands, short pipelines, and multi-line scripts. It is built for supervised fine-tuning of small and mid-size LLMs that must turn a plain request into shell code that actually runs.

Every row is a three-turn chat conversation (system / user / assistant) with metadata for slicing (category, utility) and for grouping equivalent answers to the same request (variant_group).

This is the second-generation build. Over version I it introduced the chat format, grouped alternative answers, real human phrasing seeded from tldr-pages, a doubled utility vocabulary (89 → 182), and validation by real execution on Linux.

🤗 Dataset viewer https://huggingface.co/datasets/Frost2o24/bash-instruct-II-55k
🐙 Source, generator & validator https://github.com/ya5h-P/bash-instruct-55k
📦 Other generations III (recommended) · I
⚖️ License MIT
from datasets import load_dataset

ds = load_dataset("Frost2o24/bash-instruct-II-55k", split="train")

Version comparison

I II (this) III
Rows 55,000 54,803 54,360
Distinct primary utilities 89 182 182
variant_group (grouped equivalent answers)
Real phrasing seeded from tldr-pages
Validated by execution on real Linux
ShellCheck-clean rate (warning level) 97.9% 98.5% 99.8%
Antipattern style pass (SC2002, SC2010)

Choose III unless you have a specific reason to reproduce II — for example, matching a previously published training run.


At a glance

All figures below are recomputed directly from the shipped bash_dataset.jsonl, not carried over from an earlier run.

Metric Value
Rows 54,803
Distinct requests (variant_groups) 45,142
Rows per request 1.21
single / pipeline / script 40.1% / 34.8% / 25.1%
Distinct primary utilities 182
bash -n syntax-valid 100% (0 / 54,803 failures)
ShellCheck-clean at warning level 98.5% of a 6,000-row random sample
Exact-duplicate (request, command) pairs 0
Unique request text (per distinct request) 96.8%
Requests with ≥2 equivalent answers 16.6%
Max share of any single utility 6.0% of rows · 4.9% of requests
Most common 4-word request opening 2.1% of rows
Mean command length 87 chars · 13.8 tokens

Quickstart

Load

from datasets import load_dataset

ds = load_dataset("Frost2o24/bash-instruct-II-55k", split="train")
print(ds)
# Dataset({features: ['messages', 'category', 'utility', 'variant_group'], num_rows: 54803})

print(ds[0]["messages"])

Fine-tune (TRL SFTTrainer)

The messages column is already in the OpenAI-style chat format that TRL, Axolotl, Unsloth, and LLaMA-Factory consume directly — no preprocessing or column mapping needed.

from datasets import load_dataset
from trl import SFTTrainer, SFTConfig

ds = load_dataset("Frost2o24/bash-instruct-II-55k", split="train")

trainer = SFTTrainer(
    model="Qwen/Qwen2.5-Coder-1.5B-Instruct",
    train_dataset=ds,                       # `messages` is auto-detected
    args=SFTConfig(
        output_dir="bash-sft",
        max_length=1024,
        num_train_epochs=2,
        per_device_train_batch_size=8,
    ),
)
trainer.train()

Recommended: one answer per request

Rows sharing a variant_group answer the same request with equivalent commands. For a standard single-answer SFT run, collapse them first so no request is over-weighted:

seen = set()
canonical = ds.filter(
    lambda r: not (r["variant_group"] in seen or seen.add(r["variant_group"]))
)
print(len(canonical), "distinct requests")   # 45142

Held-out split without leakage

Split on variant_group, never on rows — otherwise variants of the same request land on both sides of the split:

groups = sorted({r["variant_group"] for r in ds})
import random; random.Random(0).shuffle(groups)
val = set(groups[:2000])

train_ds = ds.filter(lambda r: r["variant_group"] not in val)
val_ds   = ds.filter(lambda r: r["variant_group"] in val)

Inspect without Python

head -n 1 bash_dataset.jsonl | jq .
jq -r '.utility'  bash_dataset.jsonl | sort | uniq -c | sort -rn | head -20
jq -r '.category' bash_dataset.jsonl | sort | uniq -c

Dataset structure

One JSON object per line in bash_dataset.jsonl:

{
  "messages": [
    {"role": "system",    "content": "You are a Bash expert."},
    {"role": "user",      "content": "Show the last 20 lines of error.log."},
    {"role": "assistant", "content": "tail -n 20 error.log"}
  ],
  "category": "single",
  "utility": "tail",
  "variant_group": "3f9a1c0b7e2d4a86"
}
Field Type Description
messages list[{role, content}] The training conversation, always exactly systemuserassistant.
category string single · pipeline · script. See below.
utility string Primary command of the solution (grep, awk, find, for, …). Use it to slice, re-balance, or curriculum-order training.
variant_group string 16-hex id shared by rows answering the same request with different-but-equivalent commands (e.g. wc -l f vs cat f | wc -l). Requests with a single answer get their own unique id.

Verified schema integrity: all 54,803 lines parse as JSON, all carry the same four keys, all have exactly the system/user/assistant role order, and no message content is empty.

Categories

category Rows Share What it contains
single 21,965 40.1% One command, no pipe or chaining. chmod 644 build.bak
pipeline 19,088 34.8% Pipes, &&/||, $(...), xargs. ps aux | awk '$3>50 {print $2}'
script 13,750 25.1% Multi-line Bash (JSON-escaped \n), mean 9.8 lines.

What's in the scripts

Feature Share of script rows
set -euo pipefail header 100%
for loop 49.0%
if [ … ] test 13.7%
while loop 11.6%
getopts argument parsing 9.5%
trap cleanup 0.1%
Here-docs (<<) 0.1%

Scripts are short, safe-by-default operational snippets — not large programs. trap and here-doc usage is deliberately rare, and there are no function definitions.

System & info utility coverage

Small models routinely fumble the observability and process-management tools. These carry enforced minimum counts with correct, idiomatic flag usage:

Utility Rows Utility Rows Utility Rows
journalctl 3,295 du 1,496 lsof 447
pstree 405 nice 289 vmstat 268
ss 263 ps 238 renice 213
netstat 201 iostat 179 w 159
dmesg 146 free 113 systemctl 111
df 56 uptime 35 hostname 30

uptime and hostname are lower because their genuine idiomatic command space is small; they are covered with real flag variants rather than padded with synonymous phrasings.

System prompts

Five equivalent Bash-assistant system prompts are rotated near-uniformly (~10.7k–11.2k rows each) so the model does not overfit one string.


Quality assurance

Four layers, in increasing strength. Layers 1–2 are reproducible in minutes on any machine; layer 3 needs a disposable Linux box.

1. Syntax — bash -n on every command

0 failures out of 54,803 (100% pass), verified with GNU bash 5.2.37 on Debian.

2. Static analysis — ShellCheck at warning level

On a 6,000-row random sample (ShellCheck 0.10.0): 98.45% of commands are completely clean. 93 rows produced a finding:

Code Findings What it is
SC2010 80 ls | grep instead of a glob — the dominant style nit
SC2164 7 cd without || exit
SC1083 3 Literal {/} — a false positive on find -exec … {} \;
SC2062 2 Unquoted grep pattern
SC2046 2 Unquoted command substitution
SC2182 1 printf with no format operand

This is the specific weakness that Bash Instruct III fixes. III rewrites the offending recipes to use file operands, redirects, and shell globs, cutting findings from 93 to 10 (99.8% clean). If you care about the model learning idiomatic style rather than merely valid syntax, prefer III.

3. Execution on real Linux

43,257 commands were executed in a disposable Debian 13 sandbox. After the cleaning passes described under Provenance, essentially all gradable commands run cleanly.

"Gradable" excludes failures that are environmental rather than command defects — a blank sandbox legitimately lacks the referenced files, users, services, or systemd (e.g. ps -C postgres when postgres is not running, chown ec2-user: when that user does not exist, rmdir on a populated fixture dir). Those commands are correct; only the sandbox lacks the target, so they are kept and reported separately.

4. Argument fidelity

Every pair is gated so the command actually references the concrete nouns the request names — the same filename, extension, user, group, service, process, and port. A wrong filename still parses and still lints clean, so neither bash -n nor ShellCheck can catch this class of error; argcheck.py exists specifically to close that gap. The shipped file has 0 mismatches.

Reproduce the audit yourself

# static: bash -n on every command, plus ShellCheck if installed,
# broken down by category and utility
python validate.py --data bash_dataset.jsonl

# execute the SAFE self-contained subset in a disposable fixture dir
python validate.py --data bash_dataset.jsonl --execute --n 3000

# whole-set execution -- THROWAWAY Linux box only (WSL, container, VM)
python validate.py --data bash_dataset.jsonl --execute --permissive --n 60000 --timeout 5

# argument-fidelity audit over the shipped file
python argcheck.py --data bash_dataset.jsonl

Validation is decoupled from generation — nothing in generate.py calls validate.py, so the checks are an independent audit rather than a self-certification.

Two execution modes:

  • strict (default) — only self-contained, read-only coreutils on relative paths.
  • --permissive — for a disposable Linux box. Runs ~43k rows including scripts and system-info / filesystem-mutating tools, while hard-blocking genuinely dangerous commands (dd, mkfs, shutdown, reboot, mount, fork bombs, kill/pkill, writes to /etc·/var·$HOME, block devices) and skipping anything that would hang (tail -f, watch, while true, sleep, installers, network calls, yes). Every command runs in a temp sandbox with a timeout, stdin from /dev/null, sudo stripped, and stdout discarded so infinite-output commands cannot exhaust memory.

The report separates ran-clean, environmental, and genuine errors (bad flag/option/logic). --dump-errors FILE writes every genuine error for inspection; --yes / --no control the delete prompt non-interactively.


Provenance

How it is built

Generated by a recipe engine (generate.py, included and reproducible).

  • Recipe engine — ~150 hand-written recipe families emit (request, command) pairs by combining varied phrasings (imperative / question / casual) with realistic parameter pools: plausible filenames, directories, extensions, ports, services, users, patterns. Every parameter is drawn once per example and reused in both the request and the command, so the two can never disagree.
  • Real phrasing (seeds) — a share of requests is seeded from tldr-pages (CC-BY-4.0): the human-written description becomes the request and its command the solution, with {{placeholders}} filled fresh from the pools. Heavily quality-filtered — subcommand multiplexers and non-fillable placeholders dropped — down to ~600 clean coreutils/text/net templates, cached in seeds/_seedcache.json so generation runs offline.
  • Answer diversity — a share of requests also emits 1–2 genuinely-equivalent alternates sharing a variant_group: flag reorderings, long/short options, wc -l fcat f | wc -l, sort -usort | uniq. Each alternate is re-checked before it is kept.
  • Guards — SHA-1 dedup of (request, command); a degeneracy guard rejecting no-op transforms (sed 's/x/x/', mv f f); category quotas (40/35/25); a 4% per-utility request cap and 6% row cap; minimum floors for the system/info utilities; the argument-fidelity gate; and a bash -n gate on every command before it is written.

Data cleaning history

Whole-set execution and a stricter validator found real defects, each fixed at the source rather than patched in the output. Reported here because the failure modes are instructive for anyone building a similar corpus:

Defect found Resolution Rows
43 malformed commands that fail on any system — bad operand counts from tldr placeholder fills (split 10 10 file, date --rfc-3339 20, uname java, head 20 -3 file, echo "host" | git credential fill) Removed 55,000 → 54,957
Long-form flag substitution leaked across pipeline stages — grep's -n → --line-number landed on a downstream tail -n, producing invalid tail --line-number Generator restricted to the owning command's segment. (tail --lines / head --lines are valid on GNU and were kept.) Also removed 3 kill --CONT <name> −149
find -size N emitted for "larger than N" requests — bare -size N means exactly N Repaired to -size +N; template now sets +/- from the request direction 113 repaired
journalctl <service> without -u — bare units, missed by the old exit-status check Validator hardened with set -o pipefail + a per-stage stderr scan for invalid/unrecognized option; rows removed 54,803

The generation before this one (version I) had a subtler problem: ~12% of pairs referenced the wrong concrete noun — right command shape, wrong filename. Neither bash -n nor ShellCheck can detect that, because a wrong filename still parses and still lints. The argcheck.py gate was introduced for II and there have been 0 mismatches since.

The generation after this one (III) fixes the SC2002 / SC2010 antipatterns that this version's ShellCheck table still shows.

Regenerating from source

python generate.py plan            # quota table + registered recipes
python generate.py run             # generate to ./bash_dataset.jsonl (resumable)
python generate.py status          # where a run stands
python generate.py validate-all    # re-run bash -n over the whole file
python generate.py seeds           # build/inspect the real-phrasing seed pool

bash_dataset.jsonl is ground truth and a derived bash_dataset.progress.json snapshot is rewritten after every batch, so an interrupted run continues where it stopped.

Flag Default Effect
--target 55000 Total rows (rescales quotas, caps, floors).
--seed-frac 0.40 Target share of seedable requests drawn from real tldr seeds.
--seed-reuse 8 Max reuse of one tldr template (higher = more real phrasing, less request variety).
--variant-frac 0.30 Share of requests that attempt alternate answers.
--row-cap-pct 0.06 Max total-row share per utility (trades off answer diversity).
--no-net off Never download seeds; use the local cache only.

Seed and answer-diversity fractions are soft — they land under target when the clean seed pool or the caps bind. The hard invariants always hold: category split, per-utility caps, coverage floors, argument fidelity, bash -n, and dedup.


Files

File Description
bash_dataset.jsonl The dataset — 54,803 rows, ~22 MB (no Git LFS needed).
generate.py The generator. Reproducible and resumable.
validate.py Standalone validator: static checks plus strict / --permissive execution.
argcheck.py Argument-fidelity checker — generation gate and standalone auditor.
seeds/_seedcache.json Cleaned real-phrasing tldr templates, so generation runs offline.

generate.py, validate.py, and argcheck.py are pure Python 3 with no third-party dependencies. validate.py optionally calls shellcheck if it is on PATH, and generate.py seeds optionally fetches tldr-pages unless --no-net is passed. Loading the dataset requires only datasets (or nothing at all — it is plain JSONL).


Combining versions

Overlap of (request, command) pairs, measured across the shipped files:

Pair Shared pairs Share of the smaller set
II ∩ III 50,715 92.5% — never concatenate
I ∩ II 18,200 33.2%
I ∩ III 15,896 29.2%

II and III are two builds of the same corpus; mixing them near-doubles the weight of the shared majority. Version I is genuinely more distinct and can be deduplicated in for extra volume, though it is measurably lower quality (97.9% ShellCheck-clean, 89 utilities).


Intended uses & limitations

Intended uses

Teaching a small or mid-size model to map natural-language requests to correct single commands, short pipelines, and small operational scripts — including the observability and process-management utilities that such models routinely get wrong. Also usable as a held-out evaluation set for shell-command generation, and as a seed corpus for rejection-sampling or preference-data pipelines.

Limitations

Please read these before reporting results.

  • Superseded. III fixes this version's style antipatterns. Use II only to reproduce existing results.
  • Synthetic. Variety comes from recombining templates and token pools plus a quality-filtered slice of real tldr phrasings. Request shapes originate from a finite family set. Phrasing is diversified — 96.8% of distinct requests have unique text and no 4-word opening exceeds 2.1% of rows — but this is not human-authored data and should not be presented as such.
  • Valid ≠ semantically correct. bash -n, ShellCheck, sandbox execution, and the argument gate together prove that commands parse, lint, run, and use the nouns the request named. None of them prove the command's logic satisfies the intent. Some pairs are plausible-but-approximate — an awk column index, for instance, assumes a particular log layout. There is no human correctness audit.
  • Single-turn, single canonical answer. No explanations, no reasoning traces, no negative examples, no multi-turn dialogue, no error recovery. The only notion of alternatives is the equivalent commands grouped by variant_group.
  • GNU/Linux-centric. Commands assume GNU coreutils and a systemd-based distribution. BSD/macOS flag differences (sed -i, stat, ps) are not covered, and neither are zsh/fish.
  • Short scripts only. Mean 9.8 lines, no function definitions, minimal trap and here-doc coverage. Not a source for large structured shell programs.
  • Not safety-tuned. The corpus contains destructive-capable commands (rm, chmod, chown, kill, dd) as legitimate answers to requests that ask for them. A model trained on it will emit such commands readily. Add refusal/confirmation behaviour separately if your deployment needs it, and never auto-execute model output.
  • Potential eval contamination. Derived in part from tldr-pages, which is public and widely scraped. If you evaluate on a tldr-derived benchmark, check for leakage first.

Citation

If you use this dataset, please cite it:

@misc{pimplapure2026bashinstruct2,
  title        = {Bash Instruct II: A Validated Synthetic Instruction-Tuning
                  Dataset for Natural Language to Bash Generation},
  author       = {Pimplapure, Yash},
  year         = {2026},
  publisher    = {Hugging Face},
  howpublished = {\url{https://huggingface.co/datasets/Frost2o24/bash-instruct-II-55k}},
  note         = {54,803 chat-formatted examples; 100\% \texttt{bash -n} valid,
                  98.5\% ShellCheck-clean. Superseded by Bash Instruct III}
}

Please also credit tldr-pages (CC-BY-4.0), the source of the real-phrasing seed templates.

License

MIT. The tldr-derived seed phrasings are used under CC-BY-4.0.


Supporting this work

This dataset — generation, whole-set Linux execution, and the fine-tuning runs used to check that it actually teaches the task — was built and validated on modest consumer hardware, which is the main thing limiting how far the next version can go.

If your team has an NVIDIA DGX Spark or an AMD Ryzen AI Max+ ("Strix Halo") AI dev kit to spare, it would go directly into larger validated corpora, real fine-tuned baselines, and published eval numbers for this dataset family. Reach out via the dataset discussions tab. No obligation either way — the data stays MIT and freely available regardless.

Downloads last month
85

Collection including Frost2o24/bash-instruct-II-55k