torvalds/linux

torvalds/linux has 32,877,439 source lines of code out of 43,229,659 total lines across 90,083 files, counted with tokei from the master ref at commit c44104f3642d on November 21, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

As of 2026-11-21 (commit c44104f3642d), torvalds/linux contains 43,229,659 total lines: 32,877,439 code, 4,937,269 comments, 5,414,951 blank, across 90,083 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-21 (commit c44104f3642d), torvalds/linux contains 43,229,659 total lines: 32,877,439 code, 4,937,269 comments, 5,414,951 blank, across 90,083 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 c44104f3642d, 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
C37148267020021989328729656453843070
C Header271481093571685017061632453801557
Device Tree66422227286182919196190301905
ReStructuredText41028500556454270204628
JSON104761634561634302
YAML597268843656204725229101160
GNU Style Assembly13233688992683795676343757
Shell10682146421494172711538110
Rust5601446391099811638818270
Python40812506398797723219034
Makefile320088509614941372513290
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,877,439 lines of code, plus 4,937,269 comment lines and 5,414,951 blank lines, for 43,229,659 total lines at commit c44104f3642d on November 21, 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 c44104f3642d, 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 c44104f3642d on November 21, 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,877,439 code lines across 51 languages, counted by tokei.