TIL: Getting the size of a file

This commit is contained in:
Asocia 2021-07-03 17:14:42 +03:00
parent 997abace67
commit f07121706c

View File

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