SyntaxFix
Write A Post
Hire A Developer
Questions
Even though du usually prints disk usage and not actual data size, GNU coreutils du can print file's "apparent size" in bytes:
du
du -b FILE
But it won't work under BSD, Solaris, macOS, ...