FreeBSD stat -f %z file
Linux stat -c %s file
sure, you can use ls -l file | awk '{print $5}' but I think stat is better