nttcp command not found

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

Introduction

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

nttcp: command not found

or when using sudo you get the following error message

sudo: nttcp: command not found

Solutions to nttcp: command not found

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

In Ubuntu nttcp is provided by nttcp package.

nttcp is:

This program is a much more convenient version of the ttcp program. It uses inetd (or simulates its behaviour) to start off the remote side program which will send/receive data. Both sides measure the time and number of bytes transfered. The local side will print the measures. The format of the output can be specified on the commandline.

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

sudo apt-get -y install nttcp

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

You can also use apt command to install nttcp.

sudo apt -y install nttcp

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

sudo aptitude install nttcp

Summary

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