Getting the Size of a File in Bytes in Unix/Linux

Use the following from a terminal to get the file size in bytes:

wc -c ~/screenlog.0

Which in this case will output:

76974 /Users/edward/screenlog.0

Showing my screenlog.0 is 76974 bytes.

Written on June 11, 2012