whats is the command in centos to see where /var /etc/ /proc/ and all those directories are mounted.. i know they are on /dev/VolGroup00/LogVol00 but i need the a command to show me that... thanks
what you want is to traverse the filesystem to find where a directory is located. "df /var" WILL give you that value because df must figure out which filesystem a path is located. "df -P /var" will give it Posix format which is easier to parse.
Depending on how your disks were partitioned, /var might not be a separate file partition and may be included under the / partition.
Check the /etc/fstab which contains static information about the filesystems. If /var is not listed in that file, then /var is not a mounted filesystem, but is part of the root or / partition.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.