modem-cmd command not found

In this troubleshooting guide we learn how to fix modem-cmd command not found error message

Introduction

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

modem-cmd: command not found

or when using sudo you get the following error message

sudo: modem-cmd: command not found

Solutions to modem-cmd: command not found

How To Fix modem-cmd: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu modem-cmd is provided by modem-cmd package.

modem-cmd is:

modem-cmd can be used to send arbitrary AT commands to a modem device over a serial line.

This means it can be used as a phone dialer:

$ modem-cmd /dev/ttyUSB0 ATDT123456

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

sudo apt-get -y install modem-cmd

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

You can also use apt command to install modem-cmd.

sudo apt -y install modem-cmd

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

sudo aptitude install modem-cmd

Summary

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