How to find the available free space on your system through the CLI
Whether you are using Windows or Linux, you can quickly determine your free disk space from the command line interface (CLI).
Access to the Windows or Linux command line interface.
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.
wmic logicaldisk get freespace
to return available disk space. Output will appear as bytes and will look like:
On Linux, type either:
man df man fdisk -l
On Windows, type either:
wmic logicaldisk /?
wmic logicaldisk get /?
wmic logicaldisk get freespace /?