Linux – How do I find out how many bytes have been written during a file copy?


This Content is from SuperUser. Question asked by Humpity

In linux (Ubuntu), I use a file manager to copy a large file e.g (500mb) to a USB sd card.

According to the gui, it shows completion in about 5 or 6 seconds (the destination file size is the same as the source).
But I know it’s not done because the card reader is still blinking and the file manager dialog won’t close.
It’s obvious the copy is being buffered.
Even the terminal command stat -c%s filename shows the full filesize (it’s lying).
After 50 secs, the dialog closes and I know that it’s done.

My question is how do I find out how many ‘actual’ bytes have been written to the sd card at any moment ?
Is there a command that can do this ?


This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from SuperUser , is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?