Wikit – A Command Line Tool to Search Wikipedia in Linux

[‘

n

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.

n

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

n

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

n

$ sudo apt install nodejst#Debian/Ubunturn$ sudo yum install nodejs npmt#RHEL/CentOSrn$ sudo dnf install nodejs npmt#Fedora 22+

n

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.

n

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

n

$ sudo npm install wikit -grn

n

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

n

$ wikit Linuxrn

n

Wikipedia Command Line View
Wikipedia Command Line View

n

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.

n

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.

n

$ wikit linux -brn

n

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

n

$ wikit linux -l 90rn

n

For more information, go to the Wikit Github repository.

n

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

n

    n

  1. 5 Linux Command Line Based Tools for Downloading Files and Browsing Websites
  2. n

  3. Install YouTube-DL – A Command Line Video Download Tool for Linux
  4. n

  5. 8 Command Line Tools for Browsing Websites and Downloading Files in Linux
  6. n

  7. Trash-cli – A Trashcan Tool to Manage ‘Trash’ from Linux Command Line
  8. n

  9. Fasd – A Commandline Tool That Offers Quick Access to Files and Directories
  10. n

  11. Inxi – A Powerful Feature-Rich Commandline System Information Tool for Linux
  12. n

n

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

n

‘]