2csv command not found

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

Introduction

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

2csv: command not found

or when using sudo you get the following error message

sudo: 2csv: command not found

Solutions to 2csv: command not found

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

In Ubuntu 2csv is provided by xml2 package.

xml2 is:

xml2 tools are used to convert XML, HTML and CSV to and from a line-oriented format more amenable to processing by classic Unix pipeline processing tools, like grep, sed, awk, cut, shell scripts, and so forth.

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

sudo apt-get -y install xml2

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

You can also use apt command to install xml2.

sudo apt -y install xml2

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

sudo aptitude install xml2

Summary

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