Check Wikipedia from the terminal with Wikit

Wikipedia

This time I will share an excellent tool that I have found on the net, for those who love the terminal this program will be very pleasant and very useful, we who have not ever used Wikipedia, well this tool is focused on it.

Wikit is an application which allows us to search Wikipedia from the terminal, with it we can access the thousands of articles published, as well as see the information within them.

From a practical point of view it is excellent because you only make use of Wikit, to obtain specific information without spending network resources in loading images, script etc. Besides that you will not get lost looking for other things and end up on another website, which in my case usually happens and I leave aside my main task.

How to install Wikit on Linux?

In order to install this tool It is necessary to have Node.js since it is a necessary dependency For operation, in addition to the fact that this method not only applies to Ubuntu but also to various systems, we only have to install nodejs on our system.

In the case of Ubuntu / Debian and derivatives we open a terminal and execute:

sudo apt-get install nodejs

sudo apt-get install npm

Then we proceed to install the tool with:

sudo npm install wikit -g

In the case of Fedora / Suse and derivatives:

yum -y install nodejs

yum -y install npm

sudo npm install wikit -g

For, Arch Linux / Manjaro and derivatives we execute:

sudo pacman -S nodejs npm

sudo npm install wikit -g

How to use Wikit?

The method of using Wikit is simple, but if you want to know all the methods of use you just have to type in the terminal:

Wikit

With this, it will show us all the commands as well as what they are for.

  • -b: Opens a complete Wikipedia article in the browser.
  • -lang langCode: specify the language; langCode is an HTML language code.
  • -line num: set the length of the line wrap to number (minimum 15)
  • -d: Open the page in the browser.

Now we only have to do a specific search and indicate the restrictions of the return of the query:

Wikit Ubuntu -lang es -line 85

With this I am telling you to search for the article on Ubuntu in the Spanish language and return me a summary of 85 characters per line.

Without further ado, it only remains to exploit the tool to the fullest.


The content of the article adheres to our principles of editorial ethics. To report an error click here!.

A comment, leave yours

Leave a Comment

Your email address will not be published.

*

*

  1. Responsible for the data: AB Internet Networks 2008 SL
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Agustin Alvia said

    I was testing the command, but I don't know how to make it display all the content without opening it in the browser.