statfs command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
statfs: command not found
or when using sudo you get the following error message
sudo: statfs: command not found
Solutions to statfs: command not found
How To Fix statfs: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu statfs is provided by gocryptfs package.
gocryptfs is:
gocryptfs is built on top of the excellent go-fuse (https://github.com/hanwen/go-fuse) FUSE library and its LoopbackFileSystem API.
This project was inspired by EncFS and strives to fix its security issues while providing good performance (benchmarks (https://nuetzlich.net/gocryptfs/comparison/#performance)).
For details on the security of gocryptfs see the Security (https://nuetzlich.net/gocryptfs/security/) design document.
To fix this problem, we can install more using the command below.
sudo apt-get -y install gocryptfs
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install gocryptfs.
sudo apt -y install gocryptfs
Or if you have aptitude installed you can use the following command.
sudo aptitude install gocryptfs
Summary
In this tutorial we learn how to fix statfs command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.