tcpconnect command not found

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

Introduction

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

tcpconnect: command not found

or when using sudo you get the following error message

sudo: tcpconnect: command not found

Solutions to tcpconnect: command not found

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

In Ubuntu tcpconnect is provided by tcputils package.

tcputils is:

This is a collection of programs to facilitate TCP programming in shell-scripts. There is also a small library which makes it somewhat easier to create TCP/IP sockets.

The programs included in this release are:

 mini-inetd  - small TCP/IP connection dispatcher
 tcpbug      - TCP/IP connection bugging device
 tcpconnect  - general TCP/IP client
 tcplisten   - general TCP/IP server
 getpeername - get name of connected TCP/IP peer

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

sudo apt-get -y install tcputils

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

You can also use apt command to install tcputils.

sudo apt -y install tcputils

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

sudo aptitude install tcputils

Summary

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