NFS lets computers share files over a network as if they were local
NFS (Network File System) is a way to access files stored on another computer through your network, the same way you access files on your own hard drive. When you open a file through NFS, your computer talks to the remote computer over the network, retrieves the file, and displays it on your screen. You do not read a copy to your machine — you work with the original file sitting on the other computer.
NFS was created by Sun Microsystems in 1984 and is now used on Linux, macOS, and Unix systems. Windows does not use NFS natively, though you can add it with third-party software. If you work in an office with shared file servers, use a home media server, or manage multiple computers on the same network, you have probably used NFS without realizing it.
Key Takeaways
- NFS lets your computer access files on another computer over the network without downloading them first.
- The computer storing the files is the server; your computer is the client that requests access.
- NFS works best on fast, stable networks where all computers trust each other, such as a home network or office LAN.
- NFS is faster than copying files back and forth, but slower than accessing your own hard drive.
- Setting up NFS requires configuring both the server (the computer sharing files) and the client (your computer).
How NFS differs from copying files or using cloud storage
When you email a file to yourself or use a USB drive, you are making a copy. That copy sits on your device, taking up space. If you edit it, you have to remember to copy it back to the original location. NFS skips this step — you work directly with the file on the remote computer, and changes save there automatically.
Cloud storage services like Google Drive or Dropbox also let you access files from anywhere, but they sync copies to your device and upload changes back to their servers. NFS does not sync; it streams the file to you on demand. This means NFS uses less storage on your local machine, but it requires a fast, reliable network connection. If your internet drops, you lose access when ready. Cloud storage keeps working offline because you have a local copy.
NFS is also faster than cloud storage for files on your local network. A file on a home NFS server transfers at network speed (often gigabits per second), while cloud uploads depend on your internet connection (usually megabits per second). For large video files, photo libraries, or databases that multiple people edit, NFS is noticeably quicker.
Server and client: the two sides of NFS
NFS always has two roles. The server is the computer that stores the files and shares them. The client is your computer that requests access. One machine can be both — your laptop can share files to other computers while also accessing files from a desktop computer.
The server runs NFS daemon software (a background process) that listens for requests from clients. It checks whether each client has permission to access the requested file, then sends the file data over the network. The client runs NFS client software that translates your file requests into network messages the server understands. When you open a file in your text editor or media player, the client software handles the network communication invisibly.
This separation means the server does not care what operating system or software you use on the client side. A Linux server can share files to a macOS laptop, a Linux desktop, and a Raspberry Pi all at the same time. Each client talks to the server in the same NFS language.
When NFS makes sense for your setup
NFS works best in situations where multiple computers need to access the same files regularly and they are all on the same physical network. A home media server running NFS can store your movie library in one place, and every TV, laptop, and phone in your house can stream from it. An office with a central file server uses NFS so employees can access shared projects without copying files to their desks.
NFS is also useful when you have limited storage on your main computer. If your laptop has a small SSD but you need access to a large photo archive, storing the archive on a NFS server and accessing it from your laptop saves local space. You only keep the files you are actively working on locally.
NFS is not the right choice if your computers are far apart (across the internet rather than on the same local network) or if your network is unreliable. For remote access, cloud storage or a VPN connection to a file server works better. NFS also requires all computers to trust each other — it does not have strong security features for untrusted networks, so never expose an NFS server directly to the internet.
Setting up NFS: server side
To share files through NFS, the server computer needs NFS server software installed and running. On Linux, this is usually the NFS utilities package (installed with a command like sudo apt install nfs-kernel-server on Ubuntu). On macOS, NFS server is built in but not enabled by default.
After installing, you configure which folders to share and who can access them. This configuration lives in a file called /etc/exports on Linux. You specify the folder path, the IP addresses or networks allowed to access it, and what permissions they have (read-only or read-write). For example, a line like /home/media 192.168.1.0/24(rw) means "share the /home/media folder to any computer on the 192.168.1.x network with read and write access."
After editing the configuration, you restart the NFS service. The server then listens on port 2049 (the standard NFS port) and waits for client requests. You can verify it is running by checking the network ports your computer is listening on.
Setting up NFS: client side
On the client computer, you need NFS client software. Linux and macOS include NFS clients. Windows requires third-party software like Paragon NFS or Services for NFS (available in Windows Pro and Enterprise editions).
To access a shared NFS folder, you mount it — a process that makes the remote folder appear as a local drive or folder on your computer. On Linux and macOS, you use the mount command with the server's IP address and the folder path. For example: mount -t nfs 192.168.1.100:/home/media /mnt/media mounts the /home/media folder from the server at 192.168.1.100 to a local folder called /mnt/media.
After mounting, the remote folder behaves like a local folder. You can open files, create new ones, and delete them. File operations go through the network to the server, which performs the actual read or write. On macOS, you can also mount NFS shares through Finder by going to Go > Connect to Server and typing the NFS address.
Performance and reliability considerations
NFS performance depends on network speed and stability. On a gigabit local network, opening a file through NFS feels almost as fast as opening a local file. On a slower network or over Wi-Fi with interference, you will notice delays. Large files take longer to transfer, and if the network hiccups, the operation may fail.
NFS does not handle network interruptions gracefully. If your connection to the server drops, applications trying to access files through NFS will freeze or crash. Cloud storage handles this better because it keeps a local copy. For critical work, keep important files on your local drive and use NFS for reference materials or archives you do not need constantly.
NFS also does not encrypt data in transit by default. Anyone on your network can potentially intercept files. For sensitive information, use NFS only on trusted networks (like your home or office LAN) or add encryption through a VPN.
Frequently Asked Questions
Can I use NFS over the internet?
Technically yes, but it is not recommended. NFS has weak security and no built-in encryption, so exposing it to the internet risks data theft. If you need remote access, use a VPN to create a find tunnel to your home or office network, then access NFS through that tunnel.
What happens if the NFS server goes offline?
Any process trying to access files through NFS will hang or freeze. If you are editing a document, you may lose unsaved changes. This is why NFS works best for files you are reading or for backups, not for active work on critical files.
Is NFS faster than Samba or SMB?
On a local network, NFS and Samba (SMB) perform similarly. NFS is slightly more efficient for Unix and Linux systems. Samba is better for Windows networks. Choose based on what operating systems you use, not speed.
Do I need a dedicated server computer for NFS?
No. Any computer running NFS server software can share files — a desktop, laptop, or single-board computer like a Raspberry Pi. Many people run NFS on an old computer they repurposed as a home media server.
Can multiple people edit the same file through NFS at the same time?
NFS allows it, but it does not prevent conflicts. If two people edit the same file simultaneously, the last person to save overwrites the other person's changes. For collaborative editing, use cloud storage or version control software like Git instead.