Files
til/bash-scripting/getting-the-size-of-a-file.md
2021-12-08 16:31:46 +03:00

116 B

You can get the size of a file in bytes with:

stat -c %s file_name
# example
size=$(stat -c %s $myfile)