title: How do I determine if a directory is a mounted NFS mount point in shellscript
body: <p>I want to write a sh/bash script that can determine whether a particular directory is a mount point for an NFS filesystem. </p>
  
  <p>eg something like</p>
  
  <pre><code>$ mkdir localdir
  $ mkdir remotedir
  $ mount host:/share ./remotedir
  $ classify_dirs.sh
   --&gt;  localdir is local
   --&gt;  remotedir is an NFS mount point
  </code></pre>