nerdexam
LPI

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…

300.4 File Sharing

Question

Which of the following statements is correct about the command exportfs -ra?

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)
  • B
    6% (2)
  • C
    3% (1)
  • E
    91% (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 -r re-syncs, it does not remove entries; unexport-all would be exportfs -ua.
  • B is wrong because -ra doesn't only load new entries - it reconciles the entire file, including updates and removals.
  • C is wrong because exportfs -ra performs an action (sync), not a query; use exportfs -v to 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

#NFS#exportfs#/etc/exports#File Sharing

Community Discussion

No community discussion yet for this question.

Full 300-300 Practice