Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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.