When I use df -h it gives following result for /appl directory
/appl 39G 32G 6.7G 83% /appl
But when I enter that directory cd /appl and run du -sh it is giving me the following result :
4.9G .
If the /appl mountpoint is occupied 32GB why is it showing that it's directories total to 4.9G?
Firstly
dfandduare two completely different linux utilities.df = Disk freedu = Disk usagedf(More info on df) will read themeta dataof thedisk partitioncontaining the specified folder which in your case isapp1and return thedisk partition informationrather than that of the actual directory.But
du(More info on du) will runs through the directory tree specified and counts the sum size of all the files under the directory and return thetotal space occupied by that directory.Next to answer your question:
cd /applorcd <mount_point>is not possible.To check where is the partition
app1mounted usemountcommand.Once you locate the
mount pointof the app1 partition,cdto that directory and then rundu -shthe expected output should be32Gafter taking some time.Note :
app1partition mount point and/app1are not same.