How to find out mount/partition a directory or file is on? (Linux Server) [closed]
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7开发者_如何学C years ago.
Improve this questionIs there a Linux command to easily find out which partition/mount a directory or file is on?
(This is probably a RTM question, and I feel guilty for asking it, but somehow, I can't find a good answer on google just yet..)
df -P file/goes/here | tail -1 | cut -d' ' -f 1
精彩评论