Introduction:
Whether you are using Windows or Linux, you can quickly determine your free disk space from the command line interface (CLI).
Requirements:
Access to the Windows or Linux command line interface.
Procedure:
Linux:
Type:
df -h
to retrieve detailed disk information on mounted partitions with the following six column headers:
Filesystem Size Used Avail Use% Mounted on
By including the -h in the command, the returned disk information will be in easily readable formats.
Windows:
Type:
wmic logicaldisk get freespace
to return available disk space. Output will appear as bytes and will look like:
FreeSpace
3906949120
More Information:
On Linux, type either:
man df man fdisk -l
On Windows, type either:
wmic /?
wmic logicaldisk /?
wmic logicaldisk get /?
wmic logicaldisk get freespace /?