ansifilter command not found

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

Introduction

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

ansifilter: command not found

or when using sudo you get the following error message

sudo: ansifilter: command not found

Solutions to ansifilter: command not found

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

In Ubuntu ansifilter is provided by ansifilter package.

ansifilter is:

ANSI codes are commands embedded in a text stream to add formatting instructions into text. These codes are interpreted by terminal emulators like xterm or Putty.

ANSIFilter parses common ANSI codes to remove them or to convert them to another colored text file format (HTML, TeX, LaTeX, RTF, Pango or BBCode). Support for ANSI art files (based on codepage 437 and ANSI.SYS sequences or BIN /XBIN/TND files) is enabled with the –art-cp437, –art-bin and –art-tundra options.

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

sudo apt-get -y install ansifilter

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

You can also use apt command to install ansifilter.

sudo apt -y install ansifilter

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

sudo aptitude install ansifilter

Summary

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