Linux – Determine the free file space in Linux

filesystemslinux

Apologies if this a dumb question, but i have not found an answer yet.

How do you find out how much free disk/file space for a given folder or partition.

Basically i need to know how much free space there is before i carry out a tasks on the server and don't wish to hit the limits unexpectedly.

thanks in advance.

Best Answer

df -h # shows free disk space on all partitions
du -hs foldername # shows space used by a particular folder
Related Topic