q command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
q: command not found
or when using sudo you get the following error message
sudo: q: command not found
Solutions to q: command not found
How To Fix q: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu q is provided by python3-q-text-as-data package.
python3-q-text-as-data is:
Q is a command line tool that allows direct execution of SQL-like queries on CSVs/TSVs (and any other tabular text files). Q treats ordinary files as database tables, and supports all SQL constructs, such as WHERE, GROUP BY, JOINs etc. It supports automatic column name and column type detection, and provides full support for multiple encodings.
This package provides the Python 3 version.
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-q-text-as-data
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-q-text-as-data.
sudo apt -y install python3-q-text-as-data
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-q-text-as-data
Summary
In this tutorial we learn how to fix q command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.