cloc counts blank lines, comment lines, and physical lines of source code in many programming languages.

cloc ("Count Lines of Code") is a command-line utility written in Perl that counts blank lines, comment lines, and physical lines of source code across hundreds of programming languages.
Key features include:
Broad Support: It recognizes and parses code stats for a vast array of languages, handling differences in single-line and multi-line comment styles automatically.
Flexible Inputs: It can analyze individual source files, entire directories, specific git commits/repositories, and compressed archive formats (like .zip, .tar.gz, .deb, .rpm, or .whl files).
Code Differences: It can compare two versions of a codebase to compute the delta in blank lines, comments, and actual code.
Portability: Written in pure Perl with minimal external dependencies, it runs across Linux, macOS, BSD variants, and Windows (where standalone compiled .exe binaries are also available).
$ brew install cloc$ sudo apt install cloc$ sudo dnf install cloc$ sudo pacman -S cloc$ winget install AlDanial.Cloc$ scoop install clocto comment.
GoAccess is a real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser.
A TUI pager with advanced support for tabular data, inferring/swapping delimiters, and real-time event parsing.
Command-line JSON processor