Bookmarks in terminal

Today I found a great tool to ease the navigation in terminal, called apparix. It lets you bookmark a folder so that you easily can navigate to it just by typing

to nameofbookmark

To install apparix in Ubuntu, type

sudo apt-get install apparix

in a terminal window.

After installation you need to set up the aliases “bm” for bookmarking and “to” for going to a bookmark by adding a few functions to your .bashrc file in your home folder (if you don’t have this file, you can create it yourself).

You’ll find the functions you need to add by issuing the command

apparix --shell-examples

in a terminal window. Copy everything below “Bash-style functions” except the “CSH-style aliases”. Paste this into your .bashrc file.

Open up a new terminal, cd to your directory of choice and type

bm mybookmark

to bookmark the folder. Afterwards you can go to any folder and type

to mybookmark

to go to your bookmark.

This tool is of course available for other Linux distributions too.

Published by

Svenn-Arne Dragly

I'm a physicist and programmer, writing about the stuff I figure out as I go.

4 thoughts on “Bookmarks in terminal”

    1. If you run

      apparix -purge-mark somename

      you will remove all bookmarks that contain “somename”. This is rather hard to manage when multiple bookmarks have similar or the same paths, so it might be better to edit the .apparixrc file directly.

      Other than that, I would encourage you to check out Nautilus Terminal (http://projects.flogisoft.com/nautilus-terminal/) or just to press F4 in Dolphin if you are using KDE. This will give you a terminal view that follows the folder you have open in the file manager. After using this feature in the file manager I have not needed apparix any longer. I simply use the bookmarks in the file manager to navigate instead. I find using a terminal together with a file manager to be extremely useful.

Leave a Reply