6.2 KiB
translating---geekpi
How to Manage Browser Bookmarks from the Ubuntu Command Line
Browser bookmarks, though not discussed as often as they should be, are an integral part of browsing the Internet. Without good bookmark functionality, a website might be lost in time, and the ability to revisit it gone. That’s why it’s really important to have a good bookmark manager.
All modern web browsers offer up some form of management tool, though they seriously lack in features. If you’ve grown tired of these mainstream tools that have been packed into your browser, you might want to seek out an alternative. Introducing Buku: the command line-based bookmark manager. It has the ability to not only manage your bookmarks, but it can encrypt them, hold them in a database, and more. Here’s how to get going with it!
Installation
Buku isn’t very popular. As a result, users will need to build it to use it. Still, installing it and getting it going on Ubuntu is a lot easier than it looks. Start by opening the terminal and using apt to install git
and python3
, as they are vital in building the software.
sudo apt python3-cryptography python3-bs4
After the needed tools are installed, the source code can be pulled down.
git clone https://github.com/jarun/Buku/.
cd Buku
Finally, to install it, just run the make command. From here it is possible to launch Buku with buku in any terminal window
sudo make install
Note: though this guide focuses on Ubuntu, Buku can be built with similar directions on any Linux distribution.
Importing Bookmarks
To import bookmarks directly into the manager, first export all bookmarks from your web browser to an html file. Then, enter the following command:
buku -i bookmarks.html
As a result, imported bookmarks will be added to the Buku bookmark database.
Exporting Bookmarks
Exporting bookmarks is as simple as importing them into the database. To export all bookmarks, use this command:
buku -e bookmarks.html
The bookmark manager, like all others, will export all bookmarks loaded into the database to an HTML file on the system. After that, take your bookmarks and do with them what you will!
Opening Bookmarks
To open a bookmark, first the user must search for it. This is done with the -s
flag. Run this to search:
buku -s searchterm
Then, once a bookmark matching the search has been found, enter the number next to it, and the bookmark will open in the default web browser.
Encryption
Unlike other bookmark managers, Buku can actually encrypt your data. This is especially handy for users who have “sensitive” bookmarks. To encrypt the database, use the -l
flag to create a password.
buku -l
With the database locked, it will not be possible to access bookmarks without entering the password to decrypt it. To decrypt, use the -k flag.
buku -k
Other features
This bookmark manger is stuffed with many different features. To read about how to use any of the other features, use the --help
switch. When this switch is used, every command switch and flag will be listed, and each feature outlined in detail. This comes in handy, as often users forget things, and it’s nice to be able to pull out a cheat-sheet sometimes.
buku --help
Conclusion
Even though this tool isn’t part of any browser, its features are far above any of the current manager offerings out there. Despite the fact that it runs in the command line, it offers up some serious competition. Bookmarks might not be that important to most people, but those who dislike the current choices and love the Linux command line should give Buku a serious shot.
译者:译者ID
校对:校对者ID