nfs-ls command not found

In this troubleshooting guide we learn how to fix nfs-ls command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

nfs-ls: command not found

or when using sudo you get the following error message

sudo: nfs-ls: command not found

Solutions to nfs-ls: command not found

How To Fix nfs-ls: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu nfs-ls is provided by libnfs-utils package.

libnfs-utils is:

LIBNFS is a client library for accessing NFS shares over a network.

LIBNFS offers three different APIs, for different use : 1, RAW : A fully async low level rpc library for nfs protocols 2, NFS ASYNC : A fully asynchronous library for high level vfs functions 3, NFS SYNC : A synchronous library for high level vfs functions

This package provides command line utilities.

To fix this problem, we can install more using the command below.

sudo apt-get -y install libnfs-utils

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install libnfs-utils.

sudo apt -y install libnfs-utils

Or if you have aptitude installed you can use the following command.

sudo aptitude install libnfs-utils

Summary

In this tutorial we learn how to fix nfs-ls command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.