mlock command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
mlock: command not found
or when using sudo you get the following error message
sudo: mlock: command not found
Solutions to mlock: command not found
How To Fix mlock: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu mlock is provided by mlock package.
mlock is:
IMAP (Internet Message Access Protocol) is a method of accessing electronic messages kept on a (possibly shared) mail server.
The UW (University of Washington) IMAP toolkit provides the c-client mail-handling library supporting various network transport methods, file system storage formats, and authentication and authorization methods.
This package contains a program to lock mailbox files to avoid corruption.
To fix this problem, we can install more using the command below.
sudo apt-get -y install mlock
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install mlock.
sudo apt -y install mlock
Or if you have aptitude installed you can use the following command.
sudo aptitude install mlock
Summary
In this tutorial we learn how to fix mlock command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.