How To Search And Use Wikipedia In Linux Terminal?

in #linux-terminal7 years ago

Wikipedia is a free online encyclopedia owned by Wikipedia foundation, it is the largest and most popular general reference work on the Internet, and is ranked the fifth-most popular website on the Internet today. Wikipedia’s web pages are pushed by all popular search engines to the top of their searches to improve their search results due to its vast and correctness of majority of the information.

Being in an era of GUI’s we all like to use graphical interface to get the information we want and why not, it’s just taps away but GUI is not the only way. Linux terminal and its subsidiaries are fully capable of browsing Wikipedia information through it…Yes..!! You read it correctly. There are many Linux utilities which you can use to search Wikipedia and get useful information. Some of these provide crisp summaries of articles and save your time by removing duplicate and useless information.

How to surf wiki’s information on Terminal?

So now the question arises how we can do it in the terminal? The answer is simple. We need to install terminal’s wiki’s subsidiary. Wikit command line program is one of the best at present time, it is a way to get a summary of search topics from Wikipedia in the command line in no time

Let's get jump it off..

Step 1: Install node.js

Command for Linux terminal:-

Sudo apt-get install nodejs ( This will install node.js)

After this, you will be prompted for password add your Linux password and proceed

Sudo apt-get install npm ( This will install npm)

For other distros, you can use ‘yum’, ‘pacman’, ‘dnf package manager’ instead of apt-get

Step 2: Install Wikit

After installing node you need to install Wikit it can be done by writing a simple command on your terminal

Sudo apt-get install wikit -g

That’s it Wikit is installed and you are ready to surf Wikipedia on your terminal

How to use wikit on terminal :

Wikit
<search_query>

You can also use flags or attributes for getting a more precise output. The flags could be placed anywhere, before or after Wikipedia search query.

Here are the flags that you can use:

-b: Opens full Wikipedia article in a browser.
-lang langCode: Specifies language; langCode is an HTML ISO language code.

–line num: Sets line wrap length to num (minimum 15)
-d: Opens disambiguation page in a browser.

You can also get complete information on Wikit by simply running following command:
Wikit -- help or man wikit or wikit

Sort:  

Congratulations @anirban072! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

You published your First Post
You got a First Vote

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

Congratulations @anirban072! You have received a personal award!

1 Year on Steemit
Click on the badge to view your Board of Honor.

Do not miss the last post from @steemitboard:

Presentamos el Ranking de SteemitBoard
Introducing SteemitBoard Ranking

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @anirban072! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Do not miss the last post from @steemitboard:

The new SteemFest⁴ badge is ready
Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.23
TRX 0.12
JST 0.029
BTC 66625.38
ETH 3619.34
USDT 1.00
SBD 2.89