bat

A better cat (file viewer).

Visit website ↗

Profile updated

Console’s review

· Reviewed by David Mytton

What we like

Replaces cat. Supports syntax highlighting and has a Git integration showing modifications in the gutter. Includes line numbers (by default, can be disabled) and a pager. Detects non-interactive usage and turns off all the fancy features for full cat compatibility. Single, open source Rust binary with packages for most platforms.

Tradeoffs

Line numbers get in the way of copy/paste, so you need to remember to launch it with the -p plain flag as needed.

Is bat a fit?

Based on Console’s review published on 2023-03-30. Summary updated .

Who it’s for

Developers who need a file viewer with syntax highlighting and Git integration

Why consider it

Provides syntax highlighting and Git integration

Keep in mind

May interfere with copy/paste due to line numbers

Console is a free weekly newsletter with short reviews of developer tools, covering strengths and tradeoffs. This review reflects Console’s assessment at publication on 2023-03-30. Features and limitations may have changed since the review date. Read our selection criteria and learn about Console.

Tech stack

Runs on
  • FreeBSD
  • Linux
  • OpenBSD
  • Windows
  • macOS
Written in
  • Rust

Checked

Source and notes

README documents Rust source build and installation on Linux, macOS, Windows, FreeBSD and OpenBSD.

View research source ↗

Coverage may be incomplete. “Written in” describes implementation, not supported project languages.

Discover your next favorite tool

Independent devtool reviews and the latest betas, in your inbox every Thursday. Free.