torvalds/linux

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.

Repository size insights

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.

LanguageFilesLinesCodeCommentsBlanks
C37147266960341988934929643383842347
C Header271481093523985014381632290801511
Device Tree66422227286182919196190301905
ReStructuredText41028500076453900204617
JSON104761634561634302
YAML597268841956203725226101156
GNU Style Assembly13233688952683775676143757
Shell10682146391494162711438109
Rust5601446471099861639018271
Python40812506398797723219034
Makefile320088503614891372513289
SVG875750356094131198
Perl47419793299239625025
XML32263472363214681247
Assembly11588755450342
Happy9535147110640
PO File76711334622591106
Lex927462061337348
C++52412206092260
AWK1529522017532403
BASH1427171894327496
Bazel651576125950267
Jinja21611357111316183
Alex411349700164
ASN.11565644187128
LD Script135524274085
Autoconf64593953034
Unreal Script561837115691
Forge Config151352321744287
CSS441624410171
RPM Specfile12261791829
HEX217317300
TeX1234155736
SWIG12521542771
Module-Definition2157137020
Snakemake51651361415
XSL102001225226
Pacman's makepkg1134911330
Objective-C18972017
C++ Header2125595511
Vim Script1423363
HTML2292504
Ruby1292504
TOML3322525
Automake3312335
Apache Velocity1151500
CMake2197102
Bitbake313463
INI16321
Markdown95340385149
Plain Text88910280108420918592

Top language: C 60.5%. Generated on .

Counting rules and retention

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.

Reproduce this report

Reproduce this exact report and configuration.

Report FAQ

How many lines of code does torvalds/linux have?

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.

How was the torvalds/linux line count measured?

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.

What commit was counted for torvalds/linux?

This OctoCounts report was generated from master at commit aebb72744764 on November 15, 2026.

Similar repository reports

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.