To get information about the free space on a Linux computer, you can use the df command. The df command stands for “disk free” and provides information about available and used disk space on the file system.

df -h

The -h option is used to display the sizes in a more human-readable format (e.g., “GB” or “MB”).

Example output:

Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1        20G   10G   10G  50% /
/dev/sdb1       100G   30G   70G  30% /home