Tbmk: A Tool to Bookmark Frequently Used Commands in Linux

Linux TLDR
Last Updated:
Reading time: 3 minutes

Tbmk (a.k.a. Terminal Bookmarker) is a simple yet effective tool that can elevate your command-line experience to the next level by reusing frequently used commands through bookmarking.

The usage is pretty simple: what you need to do first is bookmark the common commands that you often use, and when they are required in the future, simply navigate or perform a quick search in the Tbmk prompt.

You might be thinking it sounds like terminal autocompletion or what aliases do, but there are slight differences. Terminal autocompletion has the demerit that the suggested command used from history can be removed at any time, whereas aliases are somewhat inconvenient.

And don’t worry, you will also discover why this tool is effective at enhancing your command-line productivity by reading this entire article, learning its installation steps, and usage guide.

Tutorial Details

DescriptionTerminal Bookmarker
Difficulty LevelLow
Root or Sudo PrivilegesYes (for installation)
OS CompatibilityUbuntu, Manjaro, Fedora, etc.
Prerequisites
Internet RequiredYes (for installation)

How to Install Tmbk (Terminal Bookmarker) on Linux

Currently, the sole option for installation involves downloading the compressed tarball file from the project release page, extracting it, and running the installation script.

Don’t worry, you’ll be guided through each step, so first, visit the project release page and download the Linux AMD64 tarball file for a Linux system running on a 64-bit architecture.

download tbmk tarball file

Once the download process is complete, navigate to the location (assuming “~/Downloads/“), extract the contents of the tarball file, and then move into the extracted directory.

$ tar -xvf tbmk-linux-amd64.tar.xz --one-top-level=tbmk/
$ cd tbmk/

Output:

extracting tbmk tarball file

Inside the extracted directory, there is an “install” script that you need to run using the relative path (the absolute path is not recommended) for the installation to begin.

$ ./install

Output:

installing tbmk

Once the installation is complete, reload your shell configuration file using the source command to apply the changes, or simply restart your terminal session.

$ source ~/.bashrc                                                                                                                                #Bash
$ source ~/.zshrc                                                                                                                                   #Zsh
$ source ~/.config/fish/config.fish                                                                                                    #Fish

Congratulations! You have successfully installed Tbmk on your Linux system; you can now proceed to the next section to learn its usage.

How to Use Tbmk on Linux

To bookmark your frequently used commands, first type them as you normally would in the terminal (without pressing the “ENTER” key after finishing) and then press the “Ctrl+t” shortcut key; now you will be asked to name your bookmark as shown.

bookmarking command using tbmk

In this case, I’ve titled it “Updating the system” for this bookmark, but you can give anything you desire, and once you’re done, press the “ENTER” key to save.

This way, you can bookmark as many commands as you want, and in the future, when you want to execute them, simply press the “Ctrl+Space” key; the Tbmk prompt will appear with the list of all bookmarked commands.

accessing the bookmarked commands in tbmk

Here, you can either type a few characters of the bookmarked “Title” or “Command” for filtering or simply navigate to your desired command using the “Up” and “Down” arrow keys. Once you’re ready, press the “ENTER” key to execute.

In the future, if you want to delete any of your existing bookmarked commands, simply press the “Ctrl+space” key to open the Tbmk prompt, navigate to the bookmarked command you want to delete, press “Ctrl+d“, and then press “y” to delete it.

deleteing bookmarked command from tbmk

To update the command in the existing bookmark, simply bookmark the new command with the same title as the existing one to override.

Now, all the commands that you have bookmarked will be stored at the “~/.tbmk” path; you can take a backup to prevent loss during system formatting or share it with others to access all your bookmarks without having to bookmark them again.

How to Remove Tbmk from Linux

To remove this tool from your Linux system, go to the extracted tarball directory and execute the “uninstall” script using the relative path.

$ ./uninstall

Output:

uninstalling tbmk

Once the uninstallation is complete, make sure to restart your terminal session.

Final Word

As you can see, it’s a simple yet very useful tool. In the past, I’ve tried different methods to access my commonly used commands, but so far, this one is the best that I’ve found.

If you know of such a tool or have any questions or queries, then do let me know in the comment section.

Till then, peace!

Join The Conversation

Users are always welcome to leave comments about the articles, whether they are questions, comments, constructive criticism, old information, or notices of typos. Please keep in mind that all comments are moderated according to our comment policy.

2 thoughts on “Tbmk: A Tool to Bookmark Frequently Used Commands in Linux”

  1. Hi,

    You wrote “As you can see, it’s a simple yet very useful tool. In the past, I’ve tried different methods to access my commonly used commands, but so far, this one is the best that I’ve found.

    If you know of such a tool or have any questions or queries, then do let me know in the comment section.”

    I’m using an underrated terminal emulator which have a bookmark feature: tilix.

    Reply