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
df
anddu
are two completely different linux utilities.df = Disk free
du = Disk usage
df
(More info on df) will read themeta data
of thedisk partition
containing the specified folder which in your case isapp1
and return thedisk partition information
rather 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 /appl
orcd <mount_point>
is not possible.To check where is the partition
app1
mounted usemount
command.Once you locate the
mount point
of the app1 partition,cd
to that directory and then rundu -sh
the expected output should be32G
after taking some time.Note :
app1
partition mount point and/app1
are not same.