How To Install xd on Ubuntu
Posted on April 1, 2023  (Last modified on May 20, 2023 )
3 minutes • 468 words
Introduction
In this tutorial we learn how to install xd
on Ubuntu.
What is xd
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.
There are three methods to install xd
on Ubuntu. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install xd Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install xd
using apt-get
by running the following command:
sudo apt-get -y install xd
Install xd Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install xd
using apt
by running the following command:
sudo apt -y install xd
Install xd Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install xd
using aptitude
by running the following command:
sudo aptitude -y install xd
How To Uninstall xd on Ubuntu
To uninstall only the xd
package we can use the following command:
sudo apt-get remove xd
Uninstall xd And Its Dependencies
To uninstall xd
and its dependencies that are no longer needed by Ubuntu, we can use the command below:
sudo apt-get -y autoremove xd
Remove xd Configurations and Data
To remove xd
configuration and data from Ubuntu we can use the following command:
sudo apt-get -y purge xd
Remove xd configuration, data, and all of its dependencies
We can use the following command to remove xd
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge xd
Dependencies
xd have the following dependencies:
References
Summary
In this tutorial we learn how to install xd
package on Ubuntu using different package management tools: apt, apt-get and aptitude.