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, 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.

Tutorial Feedback...
Was this article helpful? If you don't find this article helpful or found some outdated info, issue or a typo, do post your valuable feedback or suggestions in the comments to help improve this article...

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

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Support Us

We are thankful for your never ending support.

4 thoughts on “Wikit – A Command Line Tool to Search Wikipedia in Linux”

  1. Add this zsh script with wikit for low tech A.I in your mac terminal. change the V1 variable to change the voice.

    Change v4 Variable to the file path you want to store temporary files. These files are deleted when the script stops running. Install espeak and replace say with its command for use in Linux.

    v5="sleep .5s"

    repeat (){
    read -p "What Is/ Are: " v2
    say -v $v1 "I Am searching for info on "$v2""
    wikit $v2 > $v4"$v2".txt
    say -v $v1 -f $v4"$v2".txt;$v5
    rm $v4*.txt

    say -v $v1 "Hello My Name Is Darwin";$v5;say -v $v1 "I Answer Questions In The Form of What Is"


    while [ $v3 == "y" ]
    say -v $v1 "Do you have another Question"
    read -p "y/n: " v3

    if [ $v3 == "n" ]



    say -v $v1 "Goodbye"

  2. This has worked for me previously on Mint 19.3 but since a complete reinstall, this set of instructions has left me needing ‘sudo‘ in front of every query. Can there be a simple solution?

  3. 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.

Have a question or suggestion? Please leave a comment to start the discussion. Please keep in mind that all comments are moderated and your email address will NOT be published.