Linux Blog

File Transfer Disk Space Tip

Filed under: General Linux,Quick Linux Tutorials — at 6:44 pm on Monday, December 12, 2011

Disk Space TipI recently got a new computer. Part of the upgrade process was backing up and moving a large amount of data off of my old PC and onto my NAS so that I could sort through it later. One of the annoying things about copying files is it’s difficult to really know how long its going to take, either way I still like to monitor progress when copying or rsyncing data. This post shows two methods of checking your transfer status without the GUI.

Everyone knows about using the disk usage utility in the terminal:

~$ du -h Downloads/
~$ du -hs Documents/

This works great, but not so well when you have large directories. A better way to monitor file progress, providing you are not doing anything else on that partition is to use the disk free utility, df.

~$ df -h

As long as you know what your disk space was when you started, and the size of the files you are trying to transfer, you can quickly figure out if you’re close or not by subtracting the two.

Hope this helps!

Image Source: