wc -c file.txt

Category: File Operations

wc -c file.txt

Count only the number of bytes in a file

Counts only the number of bytes (characters) in a file. -c means 'bytes'.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.