You can use the exportfs -u command to unexport one file system path without removing its corresponding entry from the /etc/exports file. You can use the exportfs -z command to unexport one file system path and remove its corresponding entry from the /etc/exports file.
If you want to unexport one file system path... | Then... |
---|---|
Without removing its corresponding entry from the /etc/exports file | Enter the following command:exportfs -u path path is the file system path. |
And remove its corresponding entry from the /etc/exports file | Enter the following command:exportfs -z path path is the file system path. |