Datasets:

Modalities:
Text
Formats:
json
License:
EuroswarmsInstitute commited on
Commit
5f440c6
·
verified ·
1 Parent(s): 62ecc5a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +71 -3
README.md CHANGED
@@ -1,3 +1,71 @@
1
- ---
2
- license: gpl
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: gpl
3
+ tags:
4
+ - linux
5
+ - bash
6
+ pretty_name: bash commands
7
+ ---
8
+ # Bash & Linux CLI Dataset
9
+
10
+ ## What This Dataset Is
11
+
12
+ 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.
13
+
14
+ ### Sources (provenance-tracked)
15
+
16
+ | Source | Type | Content |
17
+ |---|---|---|
18
+ | Embedded corpus (345 entries) | Static | Bash builtins (~55), shell syntax (~40), common Linux commands (~100), scripting patterns (~25), git/docker/systemd, Arch Linux operations (~35), Ubuntu/Debian operations (~35) |
19
+ | [GNU Bash Reference Manual](https://www.gnu.org/software/bash/manual/bash.html) | Fetched + cached | Official Bash 5.3 reference (builtins, expansions, syntax) |
20
+ | [Arch Wiki — Bash](https://wiki.archlinux.org/title/Bash) | Fetched + cached | Arch-specific Bash configuration and tips |
21
+ | [Arch Wiki — Pacman](https://wiki.archlinux.org/title/Pacman) | Fetched + cached | Package management operations |
22
+ | [Greg's Wiki — BashPitfalls](https://mywiki.wooledge.org/BashPitfalls) | Fetched + cached | Common scripting mistakes and correct alternatives |
23
+ | [Greg's Wiki — BashFAQ](https://mywiki.wooledge.org/BashFAQ) | Fetched + cached | Frequently asked Bash scripting questions |
24
+
25
+ ### Embedded corpus categories
26
+
27
+ | Category | Count | Description |
28
+ |---|---|---|
29
+ | `builtin` | ~55 | All major Bash builtins (`cd`, `echo`, `read`, `export`, `trap`, `set`, `declare`, `getopts`, `history`, etc.) |
30
+ | `syntax` | ~40 | Quoting, expansion, redirection, pipes, heredocs, process substitution, globbing, parameter expansion, control flow (`if`, `for`, `while`, `case`, `select`) |
31
+ | `command` | ~100 | `grep`, `sed`, `awk`, `find`, `xargs`, `sort`, `cut`, `tr`, `curl`, `rsync`, `ssh`, `tar`, `chmod`, `git`, `docker`, `systemctl`, `journalctl`, etc. |
32
+ | `scripting` | ~25 | Strict mode, functions, argument parsing, temp files, lock files, retry patterns, arrays, associative arrays |
33
+ | `arch` | ~35 | `pacman` operations, AUR (`yay`/`paru`), `makepkg`, `mkinitcpio`, `reflector`, NetworkManager, kernel management |
34
+ | `ubuntu` | ~35 | `apt`/`dpkg`, Snaps, PPAs, `ufw`, `netplan`, `do-release-upgrade`, `update-alternatives`, Flatpak |
35
+
36
+ ### System prompts
37
+
38
+ - **`SYSTEM_CMD`** — Produce the exact command or script. Use best-practice flags, POSIX-compatible syntax where possible, `&&` for chaining. No commentary unless asked.
39
+ - **`SYSTEM_EXPLAIN`** — Explain what a command does, its key flags, and caveats, in 1–3 sentences.
40
+ - **`SYSTEM_SCRIPT`** — Write a complete runnable script with `#!/usr/bin/env bash`, `set -euo pipefail`, and proper error handling.
41
+
42
+ ### Row kinds
43
+
44
+ - **`nl_to_cmd`** — Natural language task → exact command(s).
45
+ - **`nl_to_cmd_alt`** — Alternative phrasing of the same task → same command.
46
+ - **`cmd_to_explain`** — Command string → plain-English description.
47
+
48
+ ### Augmentation kinds
49
+
50
+ - **`none`** — Direct from embedded or fetched corpus.
51
+ - **`distro_slot`** — Generic command reframed with "on Arch Linux" or "on Ubuntu" suffix in the user prompt; same assistant answer.
52
+ - **`oversample`** — Same assistant answer, user prompt rewritten with a different NL template from a bank of 10 phrasings.
53
+
54
+ ### Scale
55
+
56
+ | Mode | Typical Row Count |
57
+ |---|---|
58
+ | Base (no `--augment`) | ~5,100 |
59
+ | `--augment --target-rows 1000000` | 1,000,000 |
60
+
61
+ ---
62
+
63
+ ## What This Dataset Is NOT
64
+
65
+ - **Not a Bash tutorial or course.** Rows are isolated Q&A pairs, not sequential lessons. There is no curriculum ordering or prerequisite tracking.
66
+ - **Not shell-agnostic.** Commands target Bash specifically. Zsh, Fish, and POSIX `sh` may diverge on syntax (`[[ ]]`, arrays, `shopt`, process substitution). The dataset does not flag Bash-only constructs.
67
+ - **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.
68
+ - **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.
69
+ - **Not a system administration runbook.** It teaches individual commands and short scripts, not multi-step infrastructure deployment, monitoring strategy, or incident response procedures.
70
+ - **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.
71
+ - **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.