Skip to main content

go2 directory finder

Project description

go2 is a fast directory finder



go2 provides an easy method to change among directories by a fast way. go2 is a console program similar to the old PCTools dm or the ncd from Norton, although this is designed for bash.


  • cache of recent searches;
  • history list of visited directories;
  • blacklist of directories not to search;
  • configuration file for default options;
  • multithreaded execution.

Similar programs

  • wcd
  • kcd
  • cdargs
  • apparix
  • autojump


The recommended way is to install the debian package using apt-get::

# apt-get install go2

alternatively you may install from PYPI with:

$ sudo pip3 install --prefix /usr go2

Once it is installed, each user need to include next line at the end of their ~/.bashrc:

[ -e /usr/lib/go2/ ] && source /usr/lib/go2/

In the next shell session, go2 will be ready to use.


go2 is very easy to use. From any directory just execute::

$ go2 prefix

when 'prefix' is the beginning of the directory you want to go. go2 will search in your 'home' and it will list all the directories that match the prefix.

Each match has a associated letter. To choose the target, just press the corresponding key. If you want to abort the search, you may press the ESC key (or C-c). You may choose the first match pressing ENTER. The selection may occurs in any moment, it is not required that you wait the searching is finished.

go2 remembers all the successful searches, so it is faster each time.

Other options

go2 has some options to perform searches from the '/' directory, to ask case-insensitive matching, etc. Try this::

$ go2 --help
usage: go2 [-h] [--cd] [-i] [-r] [--setup] [--version] [pattern [pattern ...]]

go2 is a fast directory finder.

This is version 1.20111128, Copyright (C) 2004-2011 David Villa Alises.
go2 comes with ABSOLUTELY NO WARRANTY; This is free software, and you
are welcome to redistribute it under certain conditions; See COPYING
for details.

positional arguments:
  pattern            pattern to find

optional arguments:
  -h, --help         show this help message and exit
  --cd               change to given dir and add it to the cache (useful as
                     'cd' alias)
  -i, --ignore-case  ignore case search
  -r, --from-root    search in whole file system
  --setup            install go2 in your .bashrc
  --version          show program's version number and exit

'pattern' may be a word list so it is possible to do things like::

$ go2 -r cach arch
a: /var/cache/apt/archives

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

go2-2.20201116.1.tar.gz (14.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page