Get the size of an individual file in Bash


On MacOSX:

stat -f%z filename.ext

On Linux:

stat -c%s filename.ext

Date: 2018-04-09

Tags:  bash

Share: