300-300 · Question #83
Which of the following statements is correct about the command exportfs -ra?
The correct answer is E. It synchronizes the NFS share configuration with the /etc/exports file. exportfs -ra combines two flags: -r (re-export/re-read /etc/exports) and -a (all entries). Together they force the NFS server to re-read /etc/exports and synchronize its active export table - adding newly listed shares and removing any that were deleted - making E correct. Why…
Question
Options
- AIt removes all entries in the /etc/exports file.
- BIt loads all new entries in the /etc/exports file.
- CIt shows all entries from the /etc/exports file.
- DIt shows only new entries which are not yet effective from /etc/exports file.
- EIt synchronizes the NFS share configuration with the /etc/exports file.
How the community answered
(33 responses)- B6% (2)
- C3% (1)
- E91% (30)
Explanation
exportfs -ra combines two flags: -r (re-export/re-read /etc/exports) and -a (all entries). Together they force the NFS server to re-read /etc/exports and synchronize its active export table - adding newly listed shares and removing any that were deleted - making E correct.
Why the distractors fail:
- A is wrong because
-rre-syncs, it does not remove entries; unexport-all would beexportfs -ua. - B is wrong because
-radoesn't only load new entries - it reconciles the entire file, including updates and removals. - C is wrong because
exportfs -raperforms an action (sync), not a query; useexportfs -vto display current exports. - D is wrong for the same reason as C - this command applies changes, it doesn't report pending ones.
Memory tip: Think of the -r flag as "refresh/reload" - like hitting F5 on your browser. exportfs -ra is the NFS equivalent of "reload all config from disk," so anything in /etc/exports is what the server will export, nothing more, nothing less.
Topics
Community Discussion
No community discussion yet for this question.