til/bash-scripting/getting-the-size-of-a-file.md
2021-07-03 17:14:42 +03:00

7 lines
112 B
Markdown

You can get the size of a file in bytes with:
```
stat -c %s file_name
# example
size=$(stat -c %s $myfile)
```