xd command not found

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

Introduction

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

xd: command not found

or when using sudo you get the following error message

sudo: xd: command not found

Solutions to xd: command not found

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

In Ubuntu xd is provided by xd package.

xd is:

The program xd is a program smart directory changer. It allows you to change to a directory specifying only its initial characters or a subset of the initial characters allowing commands like ‘xd ulb’ to do a ‘chdir /usr/local/bin’.

xd can be used in combination with the standard tab-filename completion as offered by most shells. But as xd is very easy to use, one is quickly addicted to xd when changing to directories that are not close to the current working directory. Small changes required thereafter are in practice always performed using the facilities offered by the command shell.

When multiple expansions are available xd offers a list of alternatives from which the user may select an option by simply pressing an associated key. Directories that are never selected by the user may be ignored using directives in xd’s configuration file.

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

sudo apt-get -y install xd

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

You can also use apt command to install xd.

sudo apt -y install xd

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

sudo aptitude install xd

Summary

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