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