July 05, 2004

[Shell] Get file size

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

Posted by pank at July 5, 2004 06:06 PM
Comments
Post a comment













Remember personal info?