How can I determine whether a given directory on a Linux machine is from an NFS mounted drive or not?
You could use the
(See the man page for the different formatting options, and sorry I don't have an NFS mount handy.)
You could use
if directory belogs to NFS mount, and nothing otherwise:
Edit: simpler way: