
bat
A cat clone with wings
The Lens
Bat does the same thing but with syntax highlighting, line numbers, and git diff markers built in. It's cat with a brain. You type `bat file.py` and get a color-coded, numbered, annotated view of your file.
Apache 2.0, written in Rust. It auto-detects the language for syntax highlighting, shows git modifications in the margin, and pages long files through less automatically. You can alias it to cat and just have a better experience everywhere.
Everything is free. No paid tier, no commercial version. Single binary, install from any package manager.
The catch: there really isn't one for normal use. bat is slightly slower than cat on huge files (hundreds of megabytes) because it's parsing syntax, but for files you'd actually read, the difference is imperceptible. Some people find the output too busy for piping to other commands, bat does have a `, plain` flag for that, or you can use `bat , style=plain` to strip decorations. If you pipe output, bat auto-detects it and falls back to plain text, so it plays nice with Unix pipelines.
Get tools like this every Wednesday
One featured tool, three on the radar. No fluff.
Free vs Self-Hosted vs Paid
fully freeFully open source under Apache 2.0. No paid features, no commercial edition. A single binary you install and use.
**Cost of use:** $0. Available via brew, apt, cargo, choco, and every major package manager.
Free. Zero strings. Install and forget.
Similar Tools
About
- Stars
- 58,800
- Forks
- 1,554
Explore Further
More tools in the directory
openclaw
Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞
370.3k ★claw-code
The repo is finally unlocked. enjoy the party! The fastest repo in history to surpass 100K stars ⭐. Join Discord: https://discord.gg/5TUQKqFWd Built in Rust using oh-my-codex.
190.9k ★n8n
Fair-code workflow automation with native AI capabilities
187.3k ★


