2

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

user541686
  • 3,033
  • 5
  • 28
  • 43

2 Answers2

8

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.

jw013
  • 50,274
  • 9
  • 137
  • 141
0

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

Kevin
  • 40,087
  • 16
  • 88
  • 112
Terry
  • 101
  • 2