I'm trying to untar a file. Before untarring I would like to know free space available on the mounted volume. The plan is if there is not enough space I will not untar it! So how can I find the free space available on a mounted volume using Perl? By the way, I'm using Perl for tar and untar.
Everybody is saying about df
and dh
but these commands doesn't work on the mount points. What if I want to find the free space that I can write into on a mounted point?