1) See man statfs ; the returned structure has both available quantities ( f_bfree and f_bavail ). ¹
2) Yes, it works on file systems, not hard drives, so it does not matter what type of hard drive (if any) the file system is on.
3) /
¹ If the first part of the question was not about what statfs returns, but about what “computer” displays in general, I think that the answer depends on the program used to display the amount of free space. Compare the two values returned by statfs with the programs displayed that interest you.
Arkku
source share