1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-21 22:02:09 +02:00
tldr/pages/common/loc.md
Vitor Henrique c8f956319f
pages*: simplify page description (#12149)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-02-14 21:25:13 +01:00

434 B

loc

Count lines of code. Written in Rust. More information: https://github.com/cgag/loc.

  • Print lines of code in the current directory:

loc

  • Print lines of code in the target directory:

loc {{path/to/directory}}

  • Print lines of code with stats for individual files:

loc --files

  • Print lines of code without .gitignore (etc.) files (e.g. two -u flags will additionally count hidden files and dirs):

loc -u