How can I determine whether a given directory on a Linux machine is from an NFS mounted drive or not?
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
|
You could use the For example:
(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:
|
||||
|
|