{"id":12485,"date":"2019-03-27T03:23:25","date_gmt":"2019-03-27T03:23:25","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=12485"},"modified":"2019-03-27T03:23:25","modified_gmt":"2019-03-27T03:23:25","slug":"wikit-a-command-line-tool-to-search-wikipedia-in-linux","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/27\/wikit-a-command-line-tool-to-search-wikipedia-in-linux\/","title":{"rendered":"Wikit \u2013 A Command Line Tool to Search Wikipedia in Linux"},"content":{"rendered":"<p><strong>Wikit<\/strong>\u00a0is a free and open source command line program for easily viewing Wikipedia summaries of search queries; it is built using\u00a0<strong>Nodejs<\/strong>. The verb\u00a0<strong>Wikit<\/strong>\u00a0(derived from \u201c<strong>wikipedia it<\/strong>\u201c) means looking up something on\u00a0<strong>wikipedia.org<\/strong>, the popular and remarkable open source encyclopedia on the Internet.<\/p>\n<p><strong>Read Also<\/strong>:\u00a0<a href=\"https:\/\/www.tecmint.com\/google-commandline-search-terminal\/\" target=\"_blank\" rel=\"noopener\">Googler: A Command Line Tool to Do \u2018Google Search\u2019 from Linux Terminal<\/a><\/p>\n<p>To install\u00a0<strong>Wikit<\/strong>\u00a0on Linux systems, you must have\u00a0<strong>nodejs<\/strong>\u00a0and\u00a0<strong>npm<\/strong>\u00a0installed, if not install it using your default package manager as shown.<\/p>\n<pre>$ sudo apt install nodejs\t#Debian\/Ubuntu\r\n$ sudo yum install nodejs npm\t#RHEL\/CentOS\r\n$ sudo dnf install nodejs npm\t#Fedora 22+<\/pre>\n<p>Installing\u00a0<strong>nodejs<\/strong>\u00a0and\u00a0<strong>npm<\/strong>\u00a0from the default repositories, will give you the little older version. Therefore, read our article to get more recent version of\u00a0<a href=\"https:\/\/www.tecmint.com\/install-nodejs-npm-in-centos-ubuntu\/\" target=\"_blank\" rel=\"noopener\">nodejs and npm in Linux<\/a>.<\/p>\n<p>After installing the necessary dependencies, run the following command to install\u00a0<strong>wikit<\/strong>\u00a0in Linux (the\u00a0<code>-g<\/code>\u00a0flag tells npm to install wikit globally).<\/p>\n<pre>$ sudo npm install wikit -g\r\n<\/pre>\n<p>Once\u00a0<strong>Wikit<\/strong>\u00a0installed on your system, you can run it using following syntax.<\/p>\n<pre>$ wikit Linux\r\n<\/pre>\n<div id=\"attachment_30158\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/07\/Wikipedia-Command-Line-View.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30158\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/07\/Wikipedia-Command-Line-View.png\" sizes=\"auto, (max-width: 942px) 100vw, 942px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/07\/Wikipedia-Command-Line-View.png 942w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/07\/Wikipedia-Command-Line-View-768x590.png 768w\" alt=\"Wikipedia Command Line View\" width=\"942\" height=\"724\" aria-describedby=\"caption-attachment-30158\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-30158\" class=\"wp-caption-text\">Wikipedia Command Line View<\/p>\n<\/div>\n<p>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\u2019s window size, with a max of about 80 characters.<\/p>\n<p>If you are running\u00a0<strong>wikit<\/strong>\u00a0on a desktop computer with a web browser installed, you can open the full Wikipedia article in a browser using the\u00a0<code>-b<\/code>\u00a0flag as below.<\/p>\n<pre>$ wikit linux -b\r\n<\/pre>\n<p>To define the line wrap length to number (minimum 15), use the\u00a0<code>-l<\/code>\u00a0option as shown.<\/p>\n<pre>$ wikit linux -l 90\r\n<\/pre>\n<p>For more information, go to the\u00a0<a href=\"https:\/\/github.com\/KorySchneider\/wikit\" target=\"_blank\" rel=\"nofollow noopener\">Wikit Github repository<\/a>.<\/p>\n<p>Lastly, do check out these fancy command line based tools for various tasks.<\/p>\n<ol>\n<li><a href=\"https:\/\/www.tecmint.com\/linux-command-line-tools-for-downloading-files\/\" target=\"_blank\" rel=\"noopener\">5 Linux Command Line Based Tools for Downloading Files and Browsing Websites<\/a><\/li>\n<li><a href=\"https:\/\/www.tecmint.com\/install-youtube-dl-command-line-video-download-tool\/\" target=\"_blank\" rel=\"noopener\">Install YouTube-DL \u2013 A Command Line Video Download Tool for Linux<\/a><\/li>\n<li><a href=\"https:\/\/www.tecmint.com\/command-line-web-browser-download-file-in-linux\/\" target=\"_blank\" rel=\"noopener\">8 Command Line Tools for Browsing Websites and Downloading Files in Linux<\/a><\/li>\n<li><a href=\"https:\/\/www.tecmint.com\/trash-cli-manage-linux-trash-from-command-line\/\" target=\"_blank\" rel=\"noopener\">Trash-cli \u2013 A Trashcan Tool to Manage \u2018Trash\u2019 from Linux Command Line<\/a><\/li>\n<li><a href=\"https:\/\/www.tecmint.com\/fasd-quick-access-to-linux-files-and-directories\/\" target=\"_blank\" rel=\"noopener\">Fasd \u2013 A Commandline Tool That Offers Quick Access to Files and Directories<\/a><\/li>\n<li><a href=\"https:\/\/www.tecmint.com\/inxi-command-to-find-linux-system-information\/\" target=\"_blank\" rel=\"noopener\">Inxi \u2013 A Powerful Feature-Rich Commandline System Information Tool for Linux<\/a><\/li>\n<\/ol>\n<p>You can use the comment form below to ask any questions or share any useful thoughts with us.<\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/wikipedia-commandline-tool\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wikit\u00a0is a free and open source command line program for easily viewing Wikipedia summaries of search queries; it is built using\u00a0Nodejs. The verb\u00a0Wikit\u00a0(derived from \u201cwikipedia it\u201c) means looking up something on\u00a0wikipedia.org, the popular and remarkable open source encyclopedia on the Internet. Read Also:\u00a0Googler: A Command Line Tool to Do \u2018Google Search\u2019 from Linux Terminal To &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/27\/wikit-a-command-line-tool-to-search-wikipedia-in-linux\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Wikit \u2013 A Command Line Tool to Search Wikipedia in Linux&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-12485","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12485","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=12485"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12485\/revisions"}],"predecessor-version":[{"id":12486,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12485\/revisions\/12486"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=12485"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=12485"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=12485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}