autojump is a self-learning directory changer for navigating the filesystem. It works by maintaining a database of the directories you use the most often from the command line. As soon as it’s installed it’ll start saving you time. Making it easy to switch to the directories that are the most important to you.
j is a convenience wrapper function around
autojump. Any option that can be used with
autojump can be used with
j and vice versa.
It’s really simple to use.
cd /var/log cd ~ j log
After you’ve installed autojump the above will quickly teach autojump about the
j log is a shortcut to the most visited directory named
jc is another function that will jump to the best matching child folder.
cd /var jc l
The above will jump to
/var/log if the child directory
log is the best match.
sudo apt-get install autojump
This will install autojump, but it needs to be loaded when your shell starts. The tool comes with a loader located in
/usr/share/autojump/autojump.sh and can be used to load the tool for theses shells (sh, bash and zsh). If you are using a different shell, then you’ll have to visit the projects GitHub page for more instructions (for example; there are instructions on using the tool with the fish shell).
For most users you can append the following line to your
Here is a way to append the line via the command line
cd ~ echo ". /usr/share/autojump/autojump.sh" >> .bashrc
autojump will install some simple readme files in
/usr/share/doc/autojump. This allows you to access help via the command line as:
The official documentation can be found on the wiki.