Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有 Linux 命令可以轻松找出目录或文件所在的分区/挂载?
(这可能是一个 RTM 问题,我为提出这个问题感到内疚,但不知何故,我目前在 google 上找不到一个好的答案..)
df -P file/goes/here | tail -1 | cut -d' ' -f 1