Below "df" command can be executed to find Parent Root Directory or Mount Point of Particular file or directory.
Below are example outputs of above command.
Example 1:
Below df output shows that test-nfs.out file belongs to NFS share.
Example 2:
Below df output shows that the /var/log directory belongs to / root file system (which is a logical volume)
All Linux environments.
http://linuxcommand.org/lc3_man_pages/df1.html
df -P <filename or directory name>
Below are example outputs of above command.
Example 1:
Below df output shows that test-nfs.out file belongs to NFS share.
# df -P test-nfs.out
Filesystem 1024-blocks Used Available Capacity Mounted on
10.10.10.20:/export/common/testshare 524288000 146042240 378245760 28% /testing
Filesystem 1024-blocks Used Available Capacity Mounted on
10.10.10.20:/export/common/testshare 524288000 146042240 378245760 28% /testing
Example 2:
Below df output shows that the /var/log directory belongs to / root file system (which is a logical volume)
# df -P /var/log
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/mapper/VolGroup00-LogVol00 6248448 3808448 2440000 61% /
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/mapper/VolGroup00-LogVol00 6248448 3808448 2440000 61% /
Products to which Article Applies
All Linux environments.
This Article also applies to other UNIX based Operating Systems as well.
Additional References
http://linuxcommand.org/lc3_man_pages/df1.html
tarun boyella
No comments:
Post a Comment