Network

The exportfs command

Shows or reloads the directories NFS shares (defined in /etc/exports).

Syntax

exportfs [-a | -v]Try it in the terminal →

Most useful options

-aRe-export everything
-vShow the exports

Copy-ready examples

$ exportfs -vShow the exports

You can try them in the browser terminal: it does not touch your computer.

Typical mistakes

  • Exports are edited in /etc/exports: directory + clients(rw,sync...).

Related commands

FAQ

What does exportfs do?

It manages the NFS shares defined in /etc/exports.

How do I apply them?

With exportfs -ra after editing /etc/exports.

Learn to actually use it

The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.

Start the free course