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.

As of 2026-11-15 (commit aebb72744764), torvalds/linux contains 43,223,108 total lines: 32,873,144 code, 4,935,798 comments, 5,414,166 blank, across 90,082 files in 51 languages (top language: C 60.5%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

As of 2026-11-15 (commit aebb72744764), torvalds/linux contains 43,223,108 total lines: 32,873,144 code, 4,935,798 comments, 5,414,166 blank, across 90,082 files in 51 languages (top language: C 60.5%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

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

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.

Play the growth animation for torvalds/linux on this page — 32,873,144 code lines across 51 languages, counted by tokei.