bat file.txt

Category: File Viewing & Editing

bat file.txt

View file with syntax highlighting and line numbers (bat)

Like cat but adds syntax highlighting based on the file type and shows line numbers. Makes code much easier to read. Requires bat to be installed.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.