Debian – Real time cmd tool to show HDD space remaining

debianhard-diskreal timeterminalUbuntu

Is there a command line tool which shows in real time how much space remains on my external hard drive?

Best Answer

As Julie said, you can use df to display free space, passing it either the mount point or the device name:

df --human-readable /home
df --human-readable /dev/sda1

You'll get something like this:

Filesystem Size  Used Avail Use% Mounted on
/dev/sda1  833G  84G  749G  10%  /home

To run it continuously, use watch. Default update interval is 2 seconds, but you can tweak that with --interval:

watch --interval=60 df --human-readable /dev/sda1
Related Question