I have the binary file csimu under the following path /data/local/tools/bin.

I checked the size of the binary file using du -sh csimu, but it shows size as 0. But I have binary contents inside the file.

How can I check the size of the binary file using linux command in the terminal?

  • 3
    What is the size of the file reported by ls -l? – Kusalananda Jan 12 '17 at 12:21

Maybe this will work

 stat -c %s  /data/local/tools/bin/csimu
ls -lh FileName


-rw-r--r-- 1 user user 5.2K Dec 26 17:08 FileName

I hope this is useful for you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.