---
title: Install Tokei on Linux | Snap Store
description: Get the latest version of Tokei for Linux - Count lines of code, comments
  and blank lines by language
url: https://snapcraft.io/tokei
---

# Tokei

[Sid-Ali Teir (sidaliteir)](https://snapcraft.io/publisher/sidaliteir "View all snaps from Sid-Ali Teir (sidaliteir)")

* [Sid-Ali Teir (sidaliteir)](https://snapcraft.io/publisher/sidaliteir "View all snaps from Sid-Ali Teir (sidaliteir)")
* [Development](https://snapcraft.io/search?categories=development)
* [Utilities](https://snapcraft.io/search?categories=utilities)

latest/stable 15.0.0

Install latest/stable of Tokei

---

**Install using the command line**

```
sudo snap install tokei
```

Don't have snapd? [Get set up for snaps](https://snapcraft.io/docs/installing-snapd).

---

### Package name

* tokei

---

### License

* Apache-2.0 OR MIT

---

### Last updated

* Yesterday - latest/stable
* Yesterday - latest/beta

---

### Websites

* [github.com/XAMPPRocky/tokei](https://github.com/XAMPPRocky/tokei "https://github.com/XAMPPRocky/tokei")

---

### Contact

* [github.com/sidalit/tokei-snap/issues](https://github.com/sidalit/tokei-snap/issues "https://github.com/sidalit/tokei-snap/issues")

---

### Source code

* [github.com/XAMPPRocky/tokei](https://github.com/XAMPPRocky/tokei "https://github.com/XAMPPRocky/tokei")
* [github.com/sidalit/tokei-snap](https://github.com/sidalit/tokei-snap "https://github.com/sidalit/tokei-snap")

---

### Report a bug

* [github.com/XAMPPRocky/tokei/issues](https://github.com/XAMPPRocky/tokei/issues "https://github.com/XAMPPRocky/tokei/issues")
* [github.com/sidalit/tokei-snap/issues](https://github.com/sidalit/tokei-snap/issues "https://github.com/sidalit/tokei-snap/issues")

---

##### Report a Snap Store violation

* [Report this Snap](https://snapcraft.io/tokei#report-snap-modal)

---

* [Description](https://snapcraft.io/tokei#tab-description)
* [Security](https://snapcraft.io/tokei#tab-security)

#### Count lines of code, comments and blank lines by language

Tokei counts files, lines of code, comments and blank lines in a project,
grouped by language. It respects .gitignore and .tokeignore files and can
print JSON, YAML or CBOR for other tools.

**Examples**

```
tokei ./my-project
tokei ./my-project --files --sort code
tokei ./my-project --output json
```

**File access**

Tokei can count projects in your home directory. To also count projects on
USB drives and other removable media (/media, /mnt), run:

```
sudo snap connect tokei:removable-media
```

---

## Install Tokei on your Linux distribution

Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the [installing snapd documentation](https://snapcraft.io/docs/installing-snapd).

[### Arch Linux](https://snapcraft.io/install/tokei/arch)

[### CentOS](https://snapcraft.io/install/tokei/centos)

[### Debian](https://snapcraft.io/install/tokei/debian)

[### elementary OS](https://snapcraft.io/install/tokei/elementary)

[### Fedora](https://snapcraft.io/install/tokei/fedora)

[### KDE Neon](https://snapcraft.io/install/tokei/kde-neon)

[### Kubuntu](https://snapcraft.io/install/tokei/kubuntu)

[### Manjaro](https://snapcraft.io/install/tokei/manjaro)

[### Pop!\_OS](https://snapcraft.io/install/tokei/pop)

[### openSUSE](https://snapcraft.io/install/tokei/opensuse)

[### Red Hat Enterprise Linux](https://snapcraft.io/install/tokei/rhel)

[### Ubuntu](https://snapcraft.io/install/tokei/ubuntu)

[### Raspberry Pi](https://snapcraft.io/install/tokei/raspbian)
