Skip to content

Instantly share code, notes, and snippets.

@dapperfu
Created December 6, 2016 09:08
Show Gist options
  • Save dapperfu/a242712dbbeeda026f7e200fdfa7d813 to your computer and use it in GitHub Desktop.
Save dapperfu/a242712dbbeeda026f7e200fdfa7d813 to your computer and use it in GitHub Desktop.
Mounts all of the NFS exports from a host.
#!/bin/sh
showmount -e ${1} | cut -f1 -d" " | tail -n +2 | xargs -n1 -I{} mkdir -p {}
showmount -e ${1} | cut -f1 -d" " | tail -n +2 | xargs -n1 -I{} mount ${1}:{} {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment