Forrest logo
back to the tokei tool

tokei:tldr:a1907

tokei: Get a report for all files of type Rust and Markdown.
$ tokei ${path-to-directory} -t=${Rust},${Markdown}
try on your machine

This command uses the "tokei" tool to count lines of code in a specific directory.

Here is the breakdown of each part of the command:

  • "tokei": It is the name of the tool that will be used to count lines of code.

  • "${path-to-directory}": It is the placeholder for the actual directory path that you need to specify. Replace "${path-to-directory}" with the actual path on your system where you want to count lines of code.

  • "-t=${Rust},${Markdown}": It is an option to specify the file types that you want to include in the code counting process. In this case, it is set to count lines of code in files with the extension ".rs" (Rust) and ".md" (Markdown).

So, when you run this command by replacing "${path-to-directory}" with your desired directory path, it will count the lines of code in that directory for files with the extensions specified (Rust and Markdown).

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the tokei tool