In Linux, switching directories is the most common operation on the command line interface. Accessing a directory requires continuous CD ls, although terminals provide powerful auto-completion to handle path issues. But you still need to keep hitting the CD TAB to complete the directory switch. This is a violation of Linux’s design principles, and you’ll be amazed at how efficient autojump is.

features

  1. Free open source application, distributed under GPL V3
  2. Autonomous learning applications, learning from user navigation habits
  3. Faster navigation without having to include subdirectory names
The installation

Install Autojump on Ubuntu or Debian

sudo apt-get install autojump
Install Autojump on Archlinux

sudo pacman -S autojump
Configuration after installation

In Ubuntu, you need to activate it after installation. To make it permanent in bash shell, run the following command

echo ‘. /usr/share/autojump/autojump.sh’>>~/.bashrc
Basic usage

Before starting, the directory that the previous CD has been to is recorded and added to its own database. Some directories are added more than others, and these directories are generally the most frequently used ones.

Regardless of the current directory, you can use the following command to directly jump to the specified directory:

Autojump [name of a directory or part of a name]


Image source network

The following command will jump directly to /root/home/doc

audojump doc
Like Git commands, you can set aliases for audojump, using the default alias j

J [name of a directory or part of a name]
Supports ZSH and auto complete. If you’re not sure if you want to jump to the right place, hitting TAB will list the entire path and prompt you for /root/home/doc or /root/home/ DDL

J d
Access the catalog database and modify its contents. Add a directory manually using the following command

Autojump -a [directory]
To make the current directory the most frequently used folder, you can manually increase its weight in this directory with the parameter I

Autojump -I [weight]
The opposite example is using the parameter D in the directory to reduce the weight

Autojump -D [weight]
Keep track of all these changes

autojump -s
Open a file manager from the command line instead of jumping to a directory

jo log
If you use Linux and just happen to CD every day, autojump is a must-have utility that will help you simplify a lot of things. Efficiency increases instantly.