scrub command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
scrub: command not found
or when using sudo you get the following error message
sudo: scrub: command not found
Solutions to scrub: command not found
How To Fix scrub: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu scrub is provided by scrub package.
scrub is:
scrub iteratively writes patterns on files or disk devices to make retrieving the data more difficult.
scrub can write patterns direct to disk, destroying any file system (preferred method), or it can write patterns on files, or on file system free space.
scrub writes NNSA NAP-14.x, DoD 5220.22-M, BSI, 35-pass gutmann, or one of several other selectable pattern sequences.
scrub operates at the POSIX system call level, thus it is portable to a wide variety of hardware platforms. However, this means it cannot do certain things like manipulate spare blocks on disks, etc..
To fix this problem, we can install more using the command below.
sudo apt-get -y install scrub
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install scrub.
sudo apt -y install scrub
Or if you have aptitude installed you can use the following command.
sudo aptitude install scrub
Summary
In this tutorial we learn how to fix scrub command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.