views:

34

answers:

1

Is there a Linux command to easily find out which partition/mount a directory or file is on?

(This is probably a RTFM question, and I feel guilty for asking it, but somehow, I can't find a good answer on google just yet..)

+2  A: 
df -P file/goes/here | tail -1 | cut -d' ' -f 1
Ignacio Vazquez-Abrams