sx command not found

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

Introduction

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

sx: command not found

or when using sudo you get the following error message

sudo: sx: command not found

Solutions to sx: command not found

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

In Ubuntu sx is provided by lrzsz package.

lrzsz is:

Lrzsz is a cosmetically modified zmodem/ymodem/xmodem package built from the public-domain version of Chuck Forsberg’s rzsz package.

These programs use error correcting protocols ({z,x,y}modem) to send (sz, sx, sb) and receive (rz, rx, rb) files over a dial-in serial port from a variety of programs running under various operating systems.

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

sudo apt-get -y install lrzsz

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

You can also use apt command to install lrzsz.

sudo apt -y install lrzsz

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

sudo aptitude install lrzsz

Summary

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