Wikit – A Command Line Tool to Search Wikipedia in Linux

Wikit is a free and open source command line program for easily viewing Wikipedia summaries of search queries; it is built using Nodejs. The verb Wikit (derived from “wikipedia it“) means looking up something on wikipedia.org, the popular and remarkable open source encyclopedia on the Internet.

Read Also: Googler: A Command Line Tool to Do ‘Google Search’ from Linux Terminal

To install Wikit on Linux systems, you must have nodejs and npm installed, if not install it using your default package manager as shown.

$ sudo apt install nodejs	#Debian/Ubuntu
$ sudo yum install nodejs npm	#RHEL/CentOS
$ sudo dnf install nodejs npm	#Fedora 22+

Installing nodejs and npm from the default repositories, will give you the little older version. Therefore, read our article to get more recent version of nodejs and npm in Linux.

After installing the necessary dependencies, run the following command to install wikit in Linux (the -g flag tells npm to install wikit globally).

$ sudo npm install wikit -g

Once Wikit installed on your system, you can run it using following syntax.

$ wikit Linux
Wikipedia Command Line View

Wikipedia Command Line View

The output shown is the paragraphs of the wikipedia article before the table of contents and the line length is neatly wrapped based on your terminal’s window size, with a max of about 80 characters.

If you are running wikit on a desktop computer with a web browser installed, you can open the full Wikipedia article in a browser using the -b flag as below.

$ wikit linux -b

To define the line wrap length to number (minimum 15), use the -l option as shown.

$ wikit linux -l 90

For more information, go to the Wikit Github repository.

Lastly, do check out these fancy command line based tools for various tasks.

  1. 5 Linux Command Line Based Tools for Downloading Files and Browsing Websites
  2. Install YouTube-DL – A Command Line Video Download Tool for Linux
  3. 8 Command Line Tools for Browsing Websites and Downloading Files in Linux
  4. Trash-cli – A Trashcan Tool to Manage ‘Trash’ from Linux Command Line
  5. Fasd – A Commandline Tool That Offers Quick Access to Files and Directories
  6. Inxi – A Powerful Feature-Rich Commandline System Information Tool for Linux

You can use the comment form below to ask any questions or share any useful thoughts with us.

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Aaron Kili

Aaron Kili is a Linux and F.O.S.S enthusiast, an upcoming Linux SysAdmin, web developer, and currently a content creator for TecMint who loves working with computers and strongly believes in sharing knowledge.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

1 Response

  1. Gene Wilburn says:

    To install the wikit command-line tool in MacOS, using brew, do the following:

    $ brew install nodejs
    $ npm install wikit -g
    

    Avoid using ‘sudo’.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.