Install Tokei On A Arch, Fedora And MacOS

Install Tokei On A Arch, Fedora And MacOS

tokei

A program that prints out statistics about code.

Install tokei

  • Arch Linux pacman -S tokei Click to copy
  • Fedora dnf install tokei Click to copy
  • macOS brew install tokei Click to copy

A program that prints out statistics about code.

How to use tokei?

Below are few example commands for tokei that you can use in the terminal.

Get a report on the code in a folder and all subfolders:
tokei path/to/folderClick to copy
Get a report for a folder excluding `.min.js` files:
tokei path/to/folder -e *.min.jsClick to copy
Print out statistics for individual files in a folder:
tokei path/to/folder --filesClick to copy
Get a report for all files of type Rust and Markdown:
tokei path/to/folder -t=Rust,MarkdownClick to copy
To install the latest version of tokei in your favorite operating system just copy the tokei installation command from above and paste it into terminal. It will download and install the latest version of tokei 2026 package in your OS.