NFS explained in plain terms means understanding the system that lets a computer use files stored on another machine as if they were on its own disk. The central question is how dozens of computers in an office can all work on the same files without copying them back and forth, and the answer is a protocol that makes a remote folder appear local.
NFS, short for Network File System, is a distributed file system protocol developed by Sun Microsystems and first released in 1984. It is one of the oldest network protocols still in daily use, and it remains the standard way to share files between Unix and Linux systems, from university computer labs to film studios and cloud data centres.
The idea is simple: one machine, the server, offers part of its file system, and other machines, the clients, mount that share and use it transparently. This article explains what NFS is, how it works, and where it is used.
Key takeaways
- NFS lets computers share files over a network as if they were local.
- A server exports folders, and clients mount them into their own file system.
- It is stateless in its original design, which makes recovery simple.
- Modern NFS version 4 adds security, locking, and a single port.
- It is the standard file sharing system for Linux and Unix networks.
What NFS is
NFS is a protocol that allows a computer to access files over a network in the same way it accesses files on its own disk. A user opens a file, edits it, and saves it, and the application never knows that the file lives on a server in another room. The operating system handles the network communication, and the file operations look exactly like local ones.
The system is built on remote procedure calls, a way for one computer to ask another to run a function and return the result. When a client wants to read a file, it sends a request to the server, the server reads the file from its disk, and it sends the data back. The client caches what it can, so that repeated reads do not need a network round trip every time.
NFS was designed for Unix systems, where files have owners, groups, and permissions, and it preserves that model across the network. A file owned by a particular user on the server is owned by the same user on the client, as long as the user numbers match, which is why NFS works best where accounts are managed centrally. Our guide to network-attached storage explains the dedicated boxes that often serve NFS shares, and our guide to distributed systems explains the wider ideas behind sharing resources across machines.
How NFS works
The process starts with an export. The server lists the folders it is willing to share, together with which machines may use them and what they may do, in a file called /etc/exports. A folder can be shared read-only, so clients can read but not change it, or read-write, and access can be limited to particular addresses or networks.
A client mounts the share with the mount command, giving the server’s address, the exported path, and the local directory where it should appear. From that moment, the local directory is a window onto the server’s files, and every program on the client can use it without knowing anything about the network.
File access uses file handles, opaque identifiers the server hands out when a file is first looked up. The client keeps the handle and presents it with each request, so the server does not need to remember which clients have which files open. That statelessness is a deliberate design choice: if the server restarts, it does not need to rebuild any state, and clients simply retry their requests until the server is back.
Locking prevents two users from editing the same file at once, and it is handled by a separate service, since the original NFS protocol had no locking of its own. Modern NFS version 4 builds locking into the protocol, along with stronger security and better performance over slow networks, and it uses a single port, which makes it far easier to pass through firewalls.
Caching keeps NFS fast. Clients cache file attributes, directory listings, and file data, so that common operations do not cross the network every time. The cache is kept consistent by checking with the server before using data that may have changed, a balance between speed and correctness that every network file system must strike.

Comparing NFS with other file sharing
NFS is one of several ways to share files over a network. SMB is the standard on Windows networks, cloud storage syncs through a provider, and object storage offers a different model entirely, but each suits a different need.
The table below sets out the main contrasts between the leading approaches.
| Aspect | NFS | SMB | Cloud sync |
|---|---|---|---|
| Native to | Linux and Unix | Windows | Any, through an app |
| How files appear | Mounted, like local disk | Mounted, like local disk | Copied to each device |
| Works offline | No, needs the server | No, needs the server | Yes, syncs later |
| Best for | Unix labs and servers | Windows offices | Sharing between people |
| Security | Kerberos in version 4 | Built-in authentication | Provider accounts |
The practical result is that NFS is the natural choice on Linux and Unix networks, SMB is the natural choice where Windows dominates, and cloud sync suits files that must be available on devices that are often offline.
Where NFS is used
University and research computing is the classic home of NFS. A department’s home directories live on a central server and are mounted on every workstation, so a student can sit at any machine and find their files, and a researcher can run a computation on a cluster that reads its input from the same shared storage.
Film and media production depends on NFS heavily. Editors, animators, and rendering machines all work on the same project files, which may be tens of terabytes, and copying them to each workstation would be impossible. A shared NFS volume lets dozens of machines read and write the same footage at once.
Web servers use NFS for shared content. When several web servers sit behind a load balancer, they need the same files, and mounting a shared NFS volume is simpler than copying every upload to every server. User uploads, images, and session data can all live in one place that every server can reach.
Virtualisation and containers use NFS for shared storage. Virtual machines can keep their disks on an NFS share, so they can move between physical hosts without their data moving too, and container platforms use NFS volumes to give workloads storage that survives the container itself.
Home servers and small offices use NFS as well. A network-attached storage box in a home or office usually offers NFS alongside other protocols, giving Linux machines a fast, native way to reach shared photos, documents, and backups.
Strengths and limits
The greatest strength of NFS is transparency. Applications use shared files exactly as they use local ones, with no special code and no new way of working, which is why NFS has survived for forty years while more elaborate sharing systems have come and gone. It is also open and standard, so every Unix-like system supports it.
It is also a strength that NFS is simple to operate at small scale. A server exports a folder, clients mount it, and the system works, with no database, no account with a provider, and no special hardware. That simplicity is why it remains the default in university labs and small server rooms.
The limits are real, though. NFS was designed for trusted local networks, and its original versions had weak security, with access controlled by addresses and user numbers that can be faked. Performance over slow or unreliable networks is poor, since every file operation can need a round trip, and a server failure makes every client’s files disappear at once, which is why large systems now pair NFS with clustering and replication.
NFS checklist
- Export only the folders that need sharing, and only to the machines that need them.
- Use NFS version 4, with Kerberos authentication, for any sensitive data.
- Keep user numbers consistent across machines, or file ownership will confuse.
- Mount shares with sensible options, so a dead server does not hang every client.
- Monitor the server’s disk and network, since every client depends on it.
- Use locking correctly, so two users cannot corrupt a shared file.
- Back up the server, since it holds the only copy of the shared data.
- Test what happens when the server restarts, before it happens for real.
- Consider replication or clustering if the share must never go down.
Frequently asked questions
What is NFS in simple terms?
NFS is a system that lets computers share files over a network, so that a folder on one machine appears as part of another machine’s own file system, and files can be opened and saved as if they were local.
What is the difference between NFS and SMB?
NFS is the native file sharing protocol for Linux and Unix, while SMB is the native one for Windows. Both mount remote folders as if they were local, and most systems can speak both.
Does NFS work on Windows?
Windows includes an NFS client in its professional and server editions, and third-party clients exist as well, though most Windows networks use SMB instead.
Is NFS secure?
Early versions were not, since they trusted network addresses and user numbers. NFS version 4 adds Kerberos authentication and encryption, which makes it suitable for sensitive data when configured correctly.
What happens if the NFS server goes down?
Clients that try to use the share will wait or fail, depending on their mount options. The files are not lost, since they live on the server’s disk, but they are unavailable until the server returns.
What is NFS version 4?
It is the modern version of the protocol, with built-in locking, stronger security, better performance over slow networks, and a single port that is easier to pass through firewalls.
The bottom line
NFS explained in one line is this: a protocol that makes a folder on another computer behave exactly like a folder on your own disk.
It is one of the oldest ideas in networked computing that is still in daily use, and it survives because the problem it solves has not changed: people and programs in one place need files that live in another, and the simplest answer is to make the network invisible.
This article is general information about how NFS works, not advice about sharing files for a particular network.







