How to determine the amount of free disk space available in Linux
Linux, Unix, and their variants have different ways of determining the available free space and the capacity of a file, drive, a mount, or network share. Below is a listing of commands to determine this information.
Linux command line commands
Free up disk space
To free up disk space on a Linux computer or server, use one of the commands listed above to determine which directories are using the most disk space. Then, review each directory and delete any unnecessary directories.
Determining the files to delete is the tricky part. Make sure not to delete any files that are required by Linux or programs running in Linux. Log files and files for program installation packages are the common files to delete and free up disk space.