wc -c
Count the number of bytes in a file
wc -c counts bytes. Used to verify file sizes: confirm a backup file is non-zero, check a config file wasn't truncated. A 0-byte file means the write failed.
Example
$ wc -c /etc/nginx/nginx.conf
2789 /etc/nginx/nginx.conf
Tip: Type it yourself in the terminal below - reading is not the same as doing.