torvalds/linux

torvalds/linux has 32,360,193 source lines of code out of 42,579,767 total lines across 89,182 files, counted from the master ref at commit a5ebb76233b7 by the OctoCounts tokei engine on 2026-10-11. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

As of 2026-10-11 (commit a5ebb76233b7), torvalds/linux contains 42,579,767 total lines: 32,360,193 code, 4,869,429 comments, 5,350,145 blank, across 89,182 files in 50 languages (top: C 60.8%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

As of 2026-10-11 (commit a5ebb76233b7), torvalds/linux contains 42,579,767 total lines: 32,360,193 code, 4,869,429 comments, 5,350,145 blank, across 89,182 files in 50 languages (top: C 60.8%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving torvalds/linux to commit a5ebb76233b7, downloading the repository source archive, and counting every source file 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, so counting the same revision again reproduces exactly these numbers.

Repository size insights

This is a very large codebase by counted code lines. Code represents 76.0% of all lines, comments represent 11.4%, and the repository averages 363 code lines per file. C accounts for 60.8% of counted code.

LanguageFilesLinesCodeCommentsBlanks
C36808264122841967992929269933805362
C Header270331071622683144481605129796649
Device Tree64612153401176953693857290008
ReStructuredText40468337006329570200743
JSON104761372061371802
YAML57906633375414682443297437
GNU Style Assembly13243706322698525687243908
Shell10632112011469442668137576
Rust488128329977721425416303
Python39111565890548721917891
Makefile317587465607981358413083
SVG875750356094131198

Top language (C 60.8%). Generated at .

Reproduce this report

Reproduce this exact report and configuration.

Report FAQ

How many lines of code does torvalds/linux have?

torvalds/linux has 42,579,767 total lines, including 32,360,193 code lines, 4,869,429 comment lines, and 5,350,145 blank lines.

How was the torvalds/linux line count measured?

OctoCounts resolved the public GitHub repository to commit a5ebb76233b7, 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 a5ebb76233b7 on 2026-10-11T02:32:48.670379239+00:00.

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,360,193 code lines across 12 languages, counted by tokei.