TOKEI(1)
๐ TOKEI โ bestie edition ๐
okay so like. this is tokei(1), a User Commands situation, and it counts your code. fast. no cap.
โจ NAME โจ
tokei โ Count your code, quickly ๐งฎ๐
๐ธ SYNOPSIS ๐ธ
tokei [OPTIONS] [input]...
๐ฆ OPTIONS ๐ฆ
๐ POSITIONAL ARGUMENTS
[input]...โ the path (or paths, plural, she's flexible ๐โโ๏ธ) to the file or directory you want counted. if you just. don't say anything? it defaults to the current directory. main character energy of just showing up as you are.
๐ OPTIONAL ARGUMENTS
-c,--columns <columns>โ sets a strict column width for the output. lowkey strict. and heads up: this only works for terminal output, nowhere else.-e,--exclude <exclude>โ ignores every file AND directory that matches the pattern. bye bestie ๐ not counted, not seen, not perceived.-f,--filesโ prints out statistics on individual files. one file at a time, we're getting granular.-i,--input <file_input>โ pulls stats from a previous tokei run. you can hand it a file path, or literally the word"stdin"to read from stdin. recycling era โป๏ธโจ--hiddenโ counts hidden files. yes, the sneaky ones. we see them now ๐-l,--languagesโ prints out all the supported languages and their extensions. it's giving encyclopedia but make it cute ๐--no-ignoreโ do NOT respect ignore files (.gitignore,.ignore, etc.). and bestie, this one is a package deal: it implies--no-ignore-parent,--no-ignore-dot, AND--no-ignore-vcs. all three, at once, no takebacks ๐--no-ignore-parentโ doesn't respect ignore files (.gitignore,.ignore, etc.) in parent directories.--no-ignore-dotโ doesn't respect.ignoreand.tokeignorefiles, including the ones sitting in parent directories.--no-ignore-vcsโ doesn't respect VCS ignore files (.gitignore,.hgignore, etc.), parent directories included.-o,--output <output>โ outputs tokei in a specific format. pick your vibe.--streaming <streaming>โ prints the records as(language, path, lines, blanks, code, comments)โ either as simple lines or as Json, for batch processing. possible values:simple,json.-s,--sort <sort>โ sorts languages based on a column. possible values:files,lines,blanks,code,comments.-r,--rsort <rsort>โ reverse sorts languages based on a column. possible values:files,lines,blanks,code,comments.-t,--types <types>โ filters output by language type, separated by a comma. like, i.e.-t=Rust,Markdown๐ฆ๐-C,--compactโ does not print statistics about embedded languages. keeping it tight, keeping it minimal.-n,--num-format <num_format_style>โ the format of your printed numbers. your choices are:plain(1234, and yes that's the default),commas(1,234),dots(1.234), orunderscores(1_234). > โ ๏ธ cannot be used with--output. like, at all. pick a lane bestie. possible values:commas,dots,plain,underscores.-v,--verbose...โ sets the log output level, and it stacks:- shows unknown file extensions,
- reserved for future debugging ๐ (mysterious. iconic.),
- enables file level trace. > not recommended on multiple files, fr fr, it gets LOUD.
-h,--helpโ prints help ๐ซถ-V,--versionโ prints version ๐ท๏ธ
okay that's the whole thing, you're literally a tokei expert now, obsessed ๐โจ
this was tokei(1) from User Commands, version vibes from November 2025 โ slay, periodt, go count some code ๐๐
๐ฆ where this page comes from
- epel 10: tokei 14.0.0-7.el10_3 ยท (MIT OR Apache-2.0) AND BSD-3-Clause AND MIT AND MPL-2.0 AND Unicode-DFS-2016 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (Unlicense OR MIT)
- epel 9: tokei 15.0.0-2.el9 ยท (MIT OR Apache-2.0) AND BSD-3-Clause AND MIT AND MPL-2.0 AND Unicode-DFS-2016 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (Unlicense OR MIT)
- fedora 43: tokei 15.0.0-1.fc43
- fedora 43: tokei 15.0.0-2.fc43 ยท (MIT OR Apache-2.0) AND BSD-3-Clause AND MIT AND MPL-2.0 AND Unicode-DFS-2016 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (Unlicense OR MIT)
- fedora 44: tokei 14.0.0-5.fc44 ยท (MIT OR Apache-2.0) AND BSD-3-Clause AND MIT AND MPL-2.0 AND Unicode-DFS-2016 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (Unlicense OR MIT)
- fedora 44: tokei 15.0.0-1.fc44
- fedora 44: tokei 15.0.0-2.fc44 ยท (MIT OR Apache-2.0) AND BSD-3-Clause AND MIT AND MPL-2.0 AND Unicode-DFS-2016 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (Unlicense OR MIT)
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms