bat
Cat clone that displays files with syntax highlighting and Git markers.
Tested on Linux
Use it
Linux x86_64
Download and install bat binary from GitHub releases to ~/.local/bin
cd /tmp && curl -fL -o bat.tar.gz https://github.com/sharkdp/bat/releases/download/v0.26.1/bat-v0.26.1-x86_64-unknown-linux-gnu.tar.gz && tar xzf bat.tar.gz && mkdir -p ~/.local/bin && cp bat-v0.26.1-x86_64-unknown-linux-gnu/bat ~/.local/bin/bat && chmod +x ~/.local/bin/bat && ~/.local/bin/bat --version
Check that it works
bat --version
The output should contain “bat 0.26.1”.
First thing to try
cat > /tmp/sample.py <<'PY'
def hello(name: str) -> str:
return f"Hello, {name}!"
class Foo:
pass
PY
cat /tmp/sample.py
bat --color=always --paging=never /tmp/sample.py > /tmp/out_f1.txt && grep -q "38;5;" /tmp/out_f1.txt && echo "F1_COLOR_OK" && cat /tmp/out_f1.txtWhat it does
- Highlight file syntax with colorsTested
- Show Git modifications in sidebarTested
- Show non-printable charactersTested
- Page large output automaticallyNot shown working
How far pickfit got
Linux x86_64
- Installs
- Starts
- 3 of 4 features work
- Works offline
macOS and Windows: the project says it runs there; pickfit hasn’t tried it.
Good for
- display a single file on the terminal
- display multiple files at once
- colorize man pages as pager
- preview files in fzf
- monitor a file with syntax highlighting
An alternative to cat(1).
How pickfit tested it
Each run starts from a clean machine and follows the steps above. How pickfit verifies
Linux x86_64
Its main function works
- Replayed from scratch
- Works offline
- Checked on 4 Nov 2026
- Version bat 0.26.1 (979ba22)
Differences the test machine hit
- README: cargo install --locked bat
In the test: Rust toolchain not available in box; used prebuilt binary from GitHub releases - README: sudo apt install bat
In the test: No sudo/root in box; installed binary to ~/.local/bin instead