Euroswarms/bash
Bash & Linux CLI Dataset What This Dataset Is A supervised fine-tuning (SFT) dataset that teaches a language model to produce correct Bash commands, shell scripts, and Linux CLI operations — including Arch Linux and Ubuntu/Debian specifics. The assistant responses are executable commands or scripts that directly accomplish the user's stated task. Explanatory rows describe what a given command does, its key flags, and caveats. Sources… See the full description on the dataset page: https://huggingface.co/datasets/Euroswarms/bash.
Bash & Linux CLI Dataset
What This Dataset Is
A supervised fine-tuning (SFT) dataset that teaches a language model to produce correct Bash commands, shell scripts, and Linux CLI operations — including Arch Linux and Ubuntu/Debian specifics. The assistant responses are executable commands or scripts that directly accomplish the user's stated task. Explanatory rows describe what a given command does, its key flags, and caveats.
Sources (provenance-tracked)
Embedded corpus categories
System prompts
- `SYSTEM_CMD` — Produce the exact command or script. Use best-practice flags, POSIX-compatible syntax where possible,
&&for chaining. No commentary unless asked. - `SYSTEM_EXPLAIN` — Explain what a command does, its key flags, and caveats, in 1–3 sentences.
- `SYSTEM_SCRIPT` — Write a complete runnable script with
#!/usr/bin/env bash,set -euo pipefail, and proper error handling.
Row kinds
- `nl_to_cmd` — Natural language task → exact command(s).
- `nl_to_cmd_alt` — Alternative phrasing of the same task → same command.
- `cmd_to_explain` — Command string → plain-English description.
Augmentation kinds
- `none` — Direct from embedded or fetched corpus.
- `distro_slot` — Generic command reframed with "on Arch Linux" or "on Ubuntu" suffix in the user prompt; same assistant answer.
- `oversample` — Same assistant answer, user prompt rewritten with a different NL template from a bank of 10 phrasings.
Scale
What This Dataset Is NOT
- Not a Bash tutorial or course. Rows are isolated Q&A pairs, not sequential lessons. There is no curriculum ordering or prerequisite tracking.
- Not shell-agnostic. Commands target Bash specifically. Zsh, Fish, and POSIX
shmay diverge on syntax ([[ ]], arrays,shopt, process substitution). The dataset does not flag Bash-only constructs. - Not a complete man-page replacement. Coverage prioritizes commonly used flags and patterns. Obscure options and corner-case behaviors of each command are not exhaustively documented.
- Not distro-neutral. Arch and Ubuntu rows use distro-specific package managers (
pacman,apt), init systems, and config paths. They will produce incorrect commands on Fedora, Alpine, or other distributions. - Not a system administration runbook. It teaches individual commands and short scripts, not multi-step infrastructure deployment, monitoring strategy, or incident response procedures.
- Not validated against a specific Bash version. Most syntax targets Bash 4.4+ / 5.x. Some constructs (
${var,,},${var^^},declare -A,mapfile) require Bash 4.0 or later and will fail on older systems. - Not safety-filtered. Destructive commands (
rm -rf,dd,mkfs) appear as valid answers. No refusal patterns or warnings are included. Apply your own safety layer if needed.
