Borg Lets You Search for Bash Commands within the Terminal

There are so many commands available in bash that it’s impossible to know them all, and some commands are rarely run. Usually, you have to switch to your web browser to search for a solution or spending time reading through the manpage. In case you’d like to search for a specific command line you can now do so with borg script.

borg-search

If you want to give it a try, you can install it in Linux as follows:


Then run the script with your search query in quotes.

Some explanations for the output:

  • () denotes hits for your query
  • [] denotes possible solutions
  • … under a [] means more lines to display
  • a “–” in a solution means separate code examples extracted from the same source

Some queries are returning useful results such as “list all files in dir” as show in the screenshot above, but others not so, as least for now:


This may improve in the future, as “adding a way to add entries and rate solutions” is part of the plan. The script queries a server running @ borg.crufter.com to look for solutions, but if you want your own it can also be self-hosted.

Via N0where

Share this:

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

Radxa Orion O6 Armv9 mini-ITX motherboard
Subscribe
Notify of
guest
The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.
4 Comments
oldest
newest
Boardcon CM3588 Rockchip RK3588 System-on-Module designed for AI and IoT applications