Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

How do I figure out which file system a given file/directory is located on?

(For example, I would like to know if the file/directory is a temporary file in RAM, or if it's stored on disk. And what mount point it corresponds to, if any. Etc.)

share|improve this question
add comment

2 Answers

up vote 7 down vote accepted

df <path> should do what you want on nearly all systems. It displays the file system and the mount point, along with the space usage statistics.

share|improve this answer
add comment

Just run the command mount or cat /etc/mtab.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.