Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

A certain program I'm developing, requires to be fed with some file sizes on the disk, in order to work.. I'm using the stat command in Terminal to achieve this.. However, stat can't calculate the actual size of the files downloded from a Bittorrent client. Does anyone know a way to do it? THANKS!

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Assuming you mean how much disk space is used holding the parts already downloaded, that would be the Blocks x Block Size that stat reports.

share|improve this answer
Got it... stat -c '%b × %B' filename –  Naveen Mar 13 '13 at 10:48
Thanks........! –  Naveen Mar 13 '13 at 10:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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