
bat - Better cat
A cat clone with syntax highlighting, line numbers, Git integration, and advanced viewing modes for better file preview experience.
🚀 bat is a modern replacement for the classic cat command. It displays file contents with syntax highlighting, line numbers, and Git integration built-in. Perfect for quickly viewing code, logs, and configuration files with beautiful formatting that makes reading easier.
💡 Use bat to preview files before editing, view code with proper syntax colors, compare changes with Git markers, or integrate it with tools like fzf and ripgrep. It works seamlessly in pipes and supports multiple viewing modes—from plain output to styled displays with decorations.
✨ Unlike standard cat, bat automatically detects file types, offers customizable themes, and lets you view specific line ranges. Configure it once in ~/.config/bat/config and enjoy enhanced file viewing across all your terminal workflows.