← The toolbox
BA
CLIApache-2.0 / MIT

bat

A cat clone with syntax highlighting and Git integration.

Official website ↗
WHY IT BELONGS HERE

A better default for everyday Linux.

bat does one job particularly well and keeps its interface focused. It is the kind of utility that earns a permanent place in a toolkit: easy to try, useful immediately, and deep enough to grow with you.

Install it

Prefer your distribution's repository when it provides a recent version. Check the official project instructions when the package is missing or significantly outdated.

Debian / Ubuntusudo apt install bat
Fedorasudo dnf install bat
Arch Linuxsudo pacman -S bat

Package names and availability vary. Read the command before running it and confirm it against your distribution's package search.

First run

$ bat