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

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


df -P file/goes/here | tail -1 | cut -d' ' -f 1