Clicky

Skip to content

bat

We normally use the cat command to display the content of a file on the terminal. The bat command does the same thing, but in a better-looking and more organised fashion, with syntax highlighting. Check below for the different outputs:

sh
bat text.md

bat 1

sh
cat text.md

bat 1

The official repo can be found here.