NFS is a way for computers to share folders and files over a network as if they were local
NFS (Network File System) is a protocol that lets one computer access files and folders stored on another computer across a network. When you use NFS, a remote computer's hard drive appears in your file manager just like a folder on your own machine. You can open, edit, and save files there without copying them to your computer first.
NFS was created by Sun Microsystems in 1984 and remains common in offices, data centers, and research environments where multiple people need to work with the same files. It works on Windows, Mac, and Linux systems, though Linux and Unix systems use it most frequently. The main appeal is simplicity: instead of emailing files back and forth or using a separate sync service, everyone points to the same shared folder.
The computer storing the files is called the server. The computer accessing those files is called the client. A single server can serve files to many clients at once, and one client can connect to multiple servers.
Key Takeaways
- NFS lets your computer access files on another computer's hard drive through your network, without copying them locally first.
- The computer storing the files is the server; the computer accessing them is the client.
- NFS works best on local networks where all computers are physically close and trust each other, not across the internet.
- NFS is faster than cloud storage for large files but requires manual setup and does not work if the server goes offline.
- SMB (used by Windows) and AFP (used by older Macs) do the same job as NFS but use different protocols.
How NFS differs from other file-sharing methods
NFS is one of several ways computers can share files. SMB (Server Message Block), also called CIFS, is what Windows uses natively. When you connect to a shared folder on another Windows computer, you are using SMB. AFP (Apple Filing Protocol) is what older Mac systems used, though newer Macs now prefer SMB as well.
Cloud storage services like Google Drive, Dropbox, and OneDrive work differently: they copy files to a company's servers on the internet, then sync changes back to your computer. NFS, by contrast, does not copy anything. Your computer reads and writes directly to the remote drive in real time. This makes NFS much faster for large files but also means you cannot access those files if your network connection drops or the server goes offline.
NFS also requires more setup than cloud storage. You need to configure the server to share a folder, then configure each client to mount that folder. Cloud storage requires only an account and a password. For this reason, NFS is common in offices and labs where IT staff handle the setup, but rare among home users.
When NFS works well and when it does not
NFS works best on a local area network (LAN) — computers in the same building or office connected by ethernet or fast Wi-Fi. All computers must be on the same network and must trust each other. Response times are fast because data travels only a short distance.
NFS performs poorly or fails across the internet. Network delays make file operations slow, and security is weak without additional encryption. If you need to share files with someone outside your office, cloud storage or a VPN-based solution is safer and more practical.
NFS also assumes the server is always on. If the server shuts down for maintenance or crashes, clients lose access to those files immediately. There is no offline mode. For this reason, organizations using NFS typically keep servers running 24/7 and maintain backups elsewhere.
How to set up NFS on Linux and Mac
On a Linux server, you install the NFS server package (usually nfs-utils or nfs-kernel-server depending on your distribution), then edit the /etc/exports file to list which folders to share and which clients can access them. You then start the NFS service. On the client side, you use the mount command to attach the remote folder to your local file system.
On Mac, the process is simpler. You go to System Preferences, select Sharing, enable File Sharing, and add the folders you want to share. Other Macs and Linux computers can then mount those folders using the Finder's Connect to Server option or the command line. Older Macs used AFP by default, but newer versions prefer SMB.
Windows does not include NFS client support by default. You can enable it through the Windows Features menu (on Pro and Enterprise editions), but it is not common. Most Windows users rely on SMB instead.
Security considerations with NFS
NFS was designed for trusted networks where all computers belong to the same organization. It does not encrypt data in transit, so anyone on your network can potentially read files as they travel between server and client. It also does not authenticate users strongly — it relies on IP addresses and user IDs, which can be spoofed.
For these reasons, NFS should never be exposed directly to the internet. If you need remote access, use a VPN to create an encrypted tunnel first, then access NFS through that tunnel. Many organizations also restrict NFS to specific IP addresses or subnets to limit who can even attempt to connect.
Modern versions of NFS (NFSv4) added better security features, including support for Kerberos authentication and encryption, but these require additional setup and are not always enabled by default.
NFS performance compared to other options
For files on a local network, NFS is typically faster than cloud storage because data does not have to travel to the internet and back. A 1 GB file transfer over NFS on a fast local network might take seconds. The same transfer through Dropbox or Google Drive could take minutes, depending on your internet speed.
However, NFS performance depends heavily on network quality. A slow or congested Wi-Fi connection can make NFS feel sluggish. Ethernet connections are more reliable. NFS also performs worse with many small files than with a few large ones, because each file operation requires a separate network request.
Cloud storage has the advantage of working anywhere you have internet, syncing automatically in the background, and keeping offline copies on your computer. NFS has the advantage of speed on a good local network and the ability to access very large shared libraries without storing copies locally.
Alternatives to NFS for sharing files
If NFS seems too complicated or does not fit your situation, several alternatives exist. Samba is an open-source implementation of SMB that runs on Linux and Mac, making it easy to share files with Windows computers. SFTP (SSH File Transfer Protocol) works over the internet with encryption and is good for transferring files between servers, though it is slower for day-to-day work. rsync is a command-line tool that synchronizes files between computers and is popular for backups.
For teams, cloud storage (Google Drive, Dropbox, OneDrive, Box) is the most common choice because it requires no setup, works on any device, and keeps files synced automatically. For organizations with strict data security requirements, Nextcloud or Seafile are self-hosted alternatives that work like cloud storage but run on your own servers.
The right choice depends on your network setup, security needs, and how often files change. NFS remains the fastest option for a trusted local network, but it requires more expertise to set up and maintain.
Frequently Asked Questions
Can I use NFS on Wi-Fi or does it require ethernet?
NFS works on Wi-Fi but performs better on ethernet. Wi-Fi is slower and less stable, which makes file operations sluggish and can cause connection drops. If you use NFS regularly, ethernet is recommended. For occasional file access, Wi-Fi is acceptable if your network is not congested.
What happens if the NFS server goes offline?
Clients lose access to the shared folder immediately. Any files you were working on become inaccessible. Some systems will hang or freeze when trying to access the offline share. For this reason, NFS servers are typically kept running continuously and backed up separately.
Can I access NFS from outside my office network?
Not safely without additional setup. NFS is not designed for internet use and lacks encryption. The secure way is to set up a VPN connection to your office network first, then access NFS through that encrypted tunnel. Alternatively, use cloud storage or SFTP for remote access.
Is NFS the same as network storage or a NAS?
NFS is a protocol — a set of rules for how computers talk to each other. A NAS (Network Attached Storage) is a physical device that stores files. A NAS typically runs NFS (or SMB) to let computers access its files. So NFS is the method; NAS is the hardware.
Do I need special software to use NFS on my computer?
On Mac and Linux, NFS support is built in. On Windows, you can enable it through Windows Features, but it is not installed by default. You do not need to install a separate application; the operating system handles it. You may need to use the command line to mount the share, or use a graphical tool depending on your system.