tlsh_unittest command not found

In this troubleshooting guide we learn how to fix tlsh_unittest command not found error message

Introduction

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

tlsh_unittest: command not found

or when using sudo you get the following error message

sudo: tlsh_unittest: command not found

Solutions to tlsh_unittest: command not found

How To Fix tlsh_unittest: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu tlsh_unittest is provided by tlsh-tools package.

tlsh-tools is:

The Trend Micro Locality Sensitive Hash is a fuzzy hash algorithm that can be used to compare similar but not identical files.

Identifying near duplicates and similar files is known to be useful to identify malware samples with similar binary file structure, variants of spam email, or backups with corrupted files.

This package contains the tlsh_unittest utility, a command-line tool to generate TLSH hash values and compare TLSH hash values to determine similar files.

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

sudo apt-get -y install tlsh-tools

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

You can also use apt command to install tlsh-tools.

sudo apt -y install tlsh-tools

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

sudo aptitude install tlsh-tools

Summary

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