How to check the status of NFS on Ubuntu?

To check the status of NFS (Network File System) on Ubuntu, you can use the following command:

Open the terminal.

Use the following command to check if the NFS service is running:

sudo service nfs-kernel-server status

This command will display the current status of the NFS server, including whether it is running and the port number it is listening on. If the service is running, it will show “Active: active (running)”.

To further examine the status of NFS shares, you can use the following command to list the shares that have been exported.

showmount -e localhost

This will display a list of directories that have been shared via NFS on the local host. If there is no output, it means that NFS sharing is not configured on the current system.

Please note that the above commands need to be run under a user with sufficient privileges. If you do not have root access, make sure to use sudo to run these commands.

bannerAds