Temporary NFS Share

So GEEKS. Here is the tip of the day.

Suppose you want to share some directory from your Linux machine to client using NFS. But the share should be temporary. I know you can edit the /etc/exports file as you have learned in RHCE training.

But here you don’t want to edit or modify the /etc/exports file.

Temporary nfs share

Temporary nfs share

Here is the simple solution. Just use the exportfs command as shown. Here is the illustrated screenshot from my machine.