detox command not found

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

Introduction

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

detox: command not found

or when using sudo you get the following error message

sudo: detox: command not found

Solutions to detox: command not found

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

In Ubuntu detox is provided by detox package.

detox is:

detox is a utility designed to clean up filenames. It replaces difficult to work with characters, such as spaces, with standard equivalents. It will also clean up filenames with UTF-8 or Latin-1 (or CP-1252) characters in them.

Features:

  • Removal or replacement of upper ASCII Latin-1 (ISO 8859-1) characters;
  • Removal or replacement of UTF-8 encoded Unicode characters;
  • Removal or replacement of spaces and other potentially tricky characters;
  • Trimming of excessive “_” and “-“s;
  • Directory recursion, dry runs, verbose listings.

It is designed with safety in mind. It won’t overwrite a file that already exists, and it doesn’t touch special files if not requested.

detox is useful to mass rename files automatically. As just one example, you can use detox to easily standardize lots of files, as MP3 or movies, downloaded or stored inside a directory.

This package provides detox and inline-detox commands. The inline-detox can be used in command lines, as a filter in shell procedures.

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

sudo apt-get -y install detox

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

You can also use apt command to install detox.

sudo apt -y install detox

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

sudo aptitude install detox

Summary

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