http command not found

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

Introduction

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

http: command not found

or when using sudo you get the following error message

sudo: http: command not found

Solutions to http: command not found

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

In Ubuntu http is provided by httpie package.

httpie is:

HTTPie is a CLI HTTP utility that makes CLI interaction with HTTP-based services as human-friendly as possible.

HTTPie does so by providing an http command that allows for issuing arbitrary HTTP requests using a simple and natural syntax and displaying colorized responses.

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

sudo apt-get -y install httpie

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

You can also use apt command to install httpie.

sudo apt -y install httpie

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

sudo aptitude install httpie

Summary

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