System Grab Bag

View all TLDR pages from common (or from all pages)

loc

Tool written in Rust that counts lines of code. 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

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.