bat -n file.txt

Category: File Viewing & Editing

bat -n file.txt

View file with line numbers only, no decoration

Displays a file with bat but shows only line numbers, without extra decoration like the box border.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.