check mounted file system linux code example Example: linux find where file is mounted df -Ph $filename