开发者

How to find out mount/partition a directory or file is on? (Linux Server) [closed]

开发者 https://www.devze.com 2023-01-07 23:49 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

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 question

Is 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
0

精彩评论

暂无评论...
验证码 换一张
取 消