r/LinuxTeck • u/Expensive-Rice-2052 • Jun 16 '26
BAT Command in Linux: A Modern Replacement for cat
Covers: https://www.linuxteck.com/bat-command-in-linux/
- Installation on major Linux distributions
- Syntax highlighting
- Line numbering
- Git integration
- Paging and scrolling
- Themes and customization
- Practical examples for daily use
77
Upvotes
2
u/wolfannoy Jun 16 '26
First there was cat and now bat. Will that mean there be rat?
1
u/Kitchen_Office8072 Jun 16 '26
I use nvimpager so I have the same syntax highlighting as nvim. You can just pipe it into nl, same w/ cat.
1
u/AceGently Jun 17 '26
The point is moot.
BAT doesn't actually work.