This question already has an answer here:

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.)

marked as duplicate by Gilles, slm, Ramesh, jasonwryan, Thomas Nyman May 9 '14 at 3:53

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


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.


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

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