hello) and give this new directory a greater weight than the others. All you have to do is check the other directories that has similar name (e.g. We can achieve that by increasing the weight of this new directory. Suppose you have a new folder named hello, and you want autojump to recognize that directory as your first choice when you type hello. However the autojump utility offers us the possibility to prioritize these directories in a manual way Increase Weight Control Autojump Priorities by Increasing or Decreasing WeightĪs we know autojump favorite the most visited directory in case we have decided to jump to a directory that shares the same name with other directories. Note: You can hit the tab button for tab-completion, -or for multiple times to get matching directories of your string. You’ll be able to observe all visited directories and their new weight number.īased on the directories that we’ve created we want to navigate to the hello child directory from our home directory without typing the full path. 10.0: /home/edxd/autojump_testlab/helloġ0.0: /home/edxd/autojump_testlab/hello/worldġ0.0: /home/edxd/autojump_testlab/world/helloĭata: /home/edxd/.local/share/autojump/autojump.txt Now check the autojump stats by adding the -s, -stat command option. Follow the given example for better understanding: mkdir autojump_testlab To understand how to use autojump for your advantage it’s better to create multiple directories and subdirectories, then pay a visit to each of those folder using the cd command, then navigate back to your home directory when you’ve reached the last sub directory. Note: the j command is equivalent to autojump. usr/share/autojump/autojump.sh" > ~/.bashrc Or without complicating things just copy the below mentioned command to your terminal and execute it. Simply open it using the following: nano. To activate the autojump utility we should add the following line to the. install.py Manually Activating Autojump The other way to install autojump is to clone the git repository just as demonstrated below: git clone git:///joelthelion/autojump.gitĬd to the autojump directory and make the python script executable then run the script as demonstrated: cd autojump Please see autojump(1) man pages for full documentation. s, -stat show database entries and their key weights purge remove non-existent paths from database h, -help show this help message and exit Output usage: autojump ] ] Īutomatically jump to directory passed as an argument. The next step is to install autojump, we can do that by using the same apt tool: sudo apt install autojumpĬheck if the autojump tool is installed correctly by running the following command: autojump -h To install autojump it is recommended to update the apt database: sudo apt update In this section we will get to know more about autojump characteristics for example: a self learning tool based on the users navigation history – No need to type sub- directories name – easy to download and install in most of Linux distros. Your system’s Python install should be Version 2.6+. Increment the weight of current directoryĭiscard non-existent directories frrom autojumpĭisplay the directories and their wheight j autojump Autojump Commands Used in This Article -a, -add The Autojump Command Syntaxĭirectories must be visited first or added manually, before they can be jumped to. History) from the command line into a database, in order to render filesystem navigation possible and quite easy just by typing small patterns. This helpful utility saves the frequently visited directories (i.e. This Linux tool allows the user to jump directly to a previously visited path (or manually added) from any location in the system.Īutojump can be described as a faster solution to navigate (or to jump) to the user favorite directories. To solve the problem of directory navigation using command lines the autojump tool has been created exactly for this purpose.Īutojump is a command line utility written in Python that serves as an advance version of the cd command or we can call it a cd command that learns. Though executing tasks through the command line can be convenient and enjoyable most of the time, however there are always those situations that will render the command line tasks tedious and time consuming.Įvery Linux user had to find themselves navigating and moving between directories using a combination of cd and ls the commands and for more advanced users, the tasks that involves moving between directories back and forth, and listing their contents can be very frustrating. These users prefer and interact most of the time with the terminal. Linux operating system is always related to skilled and knowledgeable command line users. What Is the Autojump Tool, and How Does It Work?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |