torvalds/linux has 32,873,144 source lines of code out of 43,223,108 total lines across 90,082 files, counted with tokei from the master ref at commit aebb72744764 on November 15, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
torvalds/linux: 32,873,144 code lines at commit aebb72744764, counted with tokei-15.0.0 on 2026-11-15. Saved result aa006471850943489807083b1cefc3032470831964660adecdb7219832a94200.
OctoCounts produced this report by resolving torvalds/linux to commit aebb72744764, downloading the repository source archive, and counting files selected by the effective rules with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options; an exact reproduction needs the same commit, engine version, and effective counting rules.
This is a very large codebase by counted code lines. Code represents 76.1% of all lines, comments represent 11.4%, and the repository averages 365 code lines per file. C accounts for 60.5% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C | 37147 | 26696034 | 19889349 | 2964338 | 3842347 |
| C Header | 27148 | 10935239 | 8501438 | 1632290 | 801511 |
| Device Tree | 6642 | 2227286 | 1829191 | 96190 | 301905 |
| ReStructuredText | 4102 | 850007 | 645390 | 0 | 204617 |
| JSON | 1047 | 616345 | 616343 | 0 | 2 |
| YAML | 5972 | 688419 | 562037 | 25226 | 101156 |
| GNU Style Assembly | 1323 | 368895 | 268377 | 56761 | 43757 |
| Shell | 1068 | 214639 | 149416 | 27114 | 38109 |
| Rust | 560 | 144647 | 109986 | 16390 | 18271 |
| Python | 408 | 125063 | 98797 | 7232 | 19034 |
| Makefile | 3200 | 88503 | 61489 | 13725 | 13289 |
| SVG | 87 | 57503 | 56094 | 1311 | 98 |
| Perl | 47 | 41979 | 32992 | 3962 | 5025 |
| XML | 32 | 26347 | 23632 | 1468 | 1247 |
| Assembly | 11 | 5887 | 5545 | 0 | 342 |
| Happy | 9 | 5351 | 4711 | 0 | 640 |
| PO File | 7 | 6711 | 3346 | 2259 | 1106 |
| Lex | 9 | 2746 | 2061 | 337 | 348 |
| C++ | 5 | 2412 | 2060 | 92 | 260 |
| AWK | 15 | 2952 | 2017 | 532 | 403 |
| BASH | 14 | 2717 | 1894 | 327 | 496 |
| Bazel | 65 | 1576 | 1259 | 50 | 267 |
| Jinja2 | 161 | 1357 | 1113 | 161 | 83 |
| Alex | 4 | 1134 | 970 | 0 | 164 |
| ASN.1 | 15 | 656 | 441 | 87 | 128 |
| LD Script | 13 | 552 | 427 | 40 | 85 |
| Autoconf | 6 | 459 | 395 | 30 | 34 |
| Unreal Script | 5 | 618 | 371 | 156 | 91 |
| Forge Config | 15 | 1352 | 321 | 744 | 287 |
| CSS | 4 | 416 | 244 | 101 | 71 |
| RPM Specfile | 1 | 226 | 179 | 18 | 29 |
| HEX | 2 | 173 | 173 | 0 | 0 |
| TeX | 1 | 234 | 155 | 73 | 6 |
| SWIG | 1 | 252 | 154 | 27 | 71 |
| Module-Definition | 2 | 157 | 137 | 0 | 20 |
| Snakemake | 5 | 165 | 136 | 14 | 15 |
| XSL | 10 | 200 | 122 | 52 | 26 |
| Pacman's makepkg | 1 | 134 | 91 | 13 | 30 |
| Objective-C | 1 | 89 | 72 | 0 | 17 |
| C++ Header | 2 | 125 | 59 | 55 | 11 |
| Vim Script | 1 | 42 | 33 | 6 | 3 |
| HTML | 2 | 29 | 25 | 0 | 4 |
| Ruby | 1 | 29 | 25 | 0 | 4 |
| TOML | 3 | 32 | 25 | 2 | 5 |
| Automake | 3 | 31 | 23 | 3 | 5 |
| Apache Velocity | 1 | 15 | 15 | 0 | 0 |
| CMake | 2 | 19 | 7 | 10 | 2 |
| Bitbake | 3 | 13 | 4 | 6 | 3 |
| INI | 1 | 6 | 3 | 2 | 1 |
| Markdown | 9 | 534 | 0 | 385 | 149 |
| Plain Text | 889 | 102801 | 0 | 84209 | 18592 |
Top language: C 60.5%. Generated on .
torvalds/linux: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.
Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.
torvalds/linux has 32,873,144 lines of code, plus 4,935,798 comment lines and 5,414,166 blank lines, for 43,223,108 total lines at commit aebb72744764 on November 15, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit aebb72744764, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from master at commit aebb72744764 on November 15, 2026.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for torvalds/linux on this page — 32,873,144 code lines across 51 languages, counted by tokei.