Autojump – An Advanced ‘cd’ Command to Quickly Navigate Linux Filesystem

Page 1 of 212

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Use our Linode referral link if you plan to buy VPS (it starts at only $10/month).
  4. Support us via PayPal donate - Make a Donation
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

16 Responses

  1. anonymous says:

    `$ apt-get install autojumo`

    `$ apt-get install autojump`

    And it’s totally unnecessary to do `apt-get dist-upgrade`

  2. LycaonKoW says:

    Very awesome, more Linux articles need to learn from you guys. Very well put together instructions and I love it, thank you for your work and knowledge base sharing.

  3. Vince says:

    Love its script but i can’t get it to work with j, it seem to only accept autojump as a command. running on mint 17.3

    • Ravi Saive says:

      @Vince,

      Thanks for finding this tool useful, have you seen any output with j? both j and autojump command gives same output? could you share?

    • satoru says:

      I’ve recently rewritten this tool with Go: github.com/suzaku/shonenjump/

      You only need to download a binary for your platform, so it’s easier to install than the original one written in Python.
      What’s more, it’s much faster.

      • Ravi Saive says:

        @Satoru,

        This is Ravi Saive, the founder of Tecmint.com.

        Thanks for sharing your tool with us, why not you write a review post on the same with installation and review about the tool and send us for review for publication in TecMint.com?

  4. Eduardo says:

    I use Fedora 22 and I installed autojump from Fedora repository, but j command is not recognized and the command for bash activation gets “file or command not found”.

  5. Eduardo says:

    I am using Fedora 22 and autojump is in Fedora repository. Version is 21.7.1-4. I have installed autojump but I get error messages “j: command not found” and I tried activate autojump temporarily, but the error message was: “bash: /usr/share/autojump/autojump.sh: file or directory not found”. Indeed, I tried activate autojump permanently, but I got error message too.

    • Victor1 says:

      I had to use rpm -ql autojump to see where autojump.sh is located because it seems like the path that is given in the post for the location of autojump.sh is wrong. Or search for autojump.sh and add those commands at the end of the post.

  6. cool.
    Btw. notable fact: bash has a simplistic directory bookmarking feature.
    By defining first two lines in .bashrc allows directory jumping:

    ~$ shopt -s cdable_vars
    ~$ export foo=/usr/share/lib/foo/bar
    ~$ cd foo
    /usr/share/lib/foo/bar $

    here’s a screencast about it:

    http://playterm.org/r/directory-bookmarks-using-shopt-1425641930

    nevertheless autojump is a cool productivity tool.

  7. omipenguin says:

    It gives this error when i try to install it

    ./install.py
    File “./install.py”, line 40
    with open(os.path.join(etc_dir, ‘autojump.sh’), ‘a’) as f:
    ^
    SyntaxError: invalid syntax

    • Avishek Kumar says:

      @ omipenguin,
      Let me know your Python Version and OS details. You may email me your SSH access at avishek1210[at]gmail.com, for better assistance.

  8. balu says:

    I have installed it through yum in centos 6.3,
    When i type the command “autojump -v”, it gives me following error “Unknown command line argument: option -v not recognized”
    When i do # j or #autojump , it executes but not going to the dir.

    • Avishek Kumar says:

      @balu

      I have already mentioned that autojump learns from you. After installing it, you need to train it. cd to your most-frequently visited directories and then it will work.

      However, if you could not do it, you may write me an email @ avishek1210[at]gmail.com with your Input commands. your Output Message and your SSH access very clearly, so that i can assist.

  9. Chang Limin says:

    It’s a good command. I think it will be better if integrate some functions from pushd/popd.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

Join Over 300K+ Linux Users
  1. 202,035
  2. 9,267
  3. 38,621

Are you subscribed?