I have an idea about knowledge base applications.

Now, I have script kbase.sh, and I have many knowledge information/examples about os (working with files, folders, os administration, etc) in text files named like this,


and so on.

In the file, the first line is commented (used as keywords), after this is an example of commands, ended with a blank line and then start next comment (next kbase information). Example of kbase (bash.kb) file here,

## bash, folders, gzip multiple folders to multiple files
for dir in *; do base=$(basename "$dir"); tar zcvf "${base}.tar.gz"   "$dir"; done

## bash, files, rename multiple files
for f in *.jpg; do mv "$f" "$(echo "$f" | sed s/IMG/VACATION/)"; done

## bash, if, check if folder is mounted
if mount | grep /home/hosek/test > /dev/null; then
echo "yay"
echo "nay"

and so on.

Now it is working with combination of autocomplete and bash commands, for example if I wanna know how to rename multiple files, just do this in terminal.

kba<TAB> <TAB><TAB> (cat all *.kb files and grep all commented lines)

kbase.sh bash<TAB><TAB> (cat all *.kb files and grep all commented lines with '## bash,')

kbase.sh bash fil<TAB><TAB> (cat all *.kb files and grep all commented lines with '## bash, file,' or '## bash, files,')

kbase.sh bash files ren<TAB><TAB> (cat all *.kb files and grep all commented lines with '## bash, files,' && 'ren')

kbase.sh bash files ren<ENTER> (cat all *.kb files and grep all commented lines with '## bash, files,' && 'ren', and write all lines started '##' until '##')

It shows me all lines from first comment '## bash, files, rename ...' to next found comment/line with '##'.

For example, this command

kbase.sh bash files ren<ENTER>

shows me all matches (grep, from ## to ##), so it display this

## bash, files, rename multiple files
for f in *.jpg; do mv "$f" "$(echo "$f" | sed s/IMG/VACATION/)"; done

So this is quite nice for fast searching. But it is not very practical, when I am in terminal and I have to go to another terminal, and do kbase.sh blablabla etc.

Could be very nice if exist some similar application, but for X (especially XFCE), where could I search and edit very similar way, for example window with search input and whisperer (for example same mechanism with cat and grep), and then show me results (in same way as kbase.sh script).

Is there any very simple application like this? Or is there a better way to work with knowledge base (chronic googling is not very practical)?

If not, I wanna make an application for this. Where can I start? C++?

Or best solution is do this as webpage in php and ajax?

Thank you very much for your time and ideas.

  • I use workflowy and tedegraph for working with knowledge. I can recommend them both to you.
    – xralf
    Commented Jul 7, 2021 at 21:01
  • 1
    FWIW, "wanna" isn't a real word in written English. It's simply the way many people pronounce "want to" when speaking English. Commented Oct 31, 2022 at 0:22
  • 1
    @RayButterworth Thank you. So is OK to use this "wanna" word? Or better is "want to"? Commented Nov 1, 2022 at 10:13
  • 1
    When speaking, it depends on your audience and the impression you want to make. (e.g. "Yes sir, I really want to work for this company!" or "Hey Joe! Wanna go for pizza?"). When writing, always use "want to" unless quoting a character who would say it one way or the other in the current circumstances. (e.g. "Fred and Joe would often want to get out of the house, so it was no surprise when Fred said, ‘Hey Joe! Wanna go for pizza?’.") Commented Nov 1, 2022 at 14:03

2 Answers 2


Consider applications like Zim (https://zim-wiki.org/), cherrytree (https://www.giuspen.com/cherrytree/) or Foswiki (https://foswiki.org/). These allow information to be structured similarly to the way you have done it now, with topics in different pages, an outline structure for hierarchical organization, and (in a couple of cases) direct wiki links from page to page.


You can just use Obisdian which gives you kind plenty of features such as note linking, tagging, searching - probably everything you need.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.