Firstly df
and du
are two completely different linux utilities.
df = Disk free
du = Disk usage
df
(More info on df) will read the meta data
of the disk partition
containing the specified folder which in your case is app1
and return the disk 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 the total space occupied by that directory
.
Next to answer your question:
cd /appl
or cd <mount_point>
is not possible.
To check where is the partition app1
mounted use mount
command.
The confusion you see is because there must be a folder called app1
under /
directory and also a partition named app1
.
Once you locate the mount point
of the app1 partition, cd
to that directory and then run du -sh
the expected output should be 32G
after taking some time.
Note : app1
partition mount point and /app1
are not same.