{"id":10457,"date":"2017-09-28T11:41:50","date_gmt":"2017-09-28T09:41:50","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/searching-wikipedia-from-the-command-line\/"},"modified":"2017-09-28T11:41:50","modified_gmt":"2017-09-28T09:41:50","slug":"searching-wikipedia-from-the-command-line","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/searching-wikipedia-from-the-command-line\/","title":{"rendered":"Searching wikipedia from the command line"},"content":{"rendered":"<p>Wouldn&#8217;t it be nice if you could search <a href=\"https:\/\/www.wikipedia.org\/\" target=\"_blank\">wikipedia<\/a> from the command line? I often need to quickly look up a definition or want to know more about a specific topic when I am working on the command line. So here is how you can do it &#8230;<br \/>\n<!--more--><\/p>\n<p>What you need is <a href=\"https:\/\/www.npmjs.com\/\" target=\"_blank\">npm<\/a> and <a href=\"https:\/\/www.npmjs.com\/package\/wikit\" target=\"_blank\">wikit<\/a>. On my <a href=\"https:\/\/www.debian.org\/\" target=\"_blank\">debian<\/a> based system I can install both with:<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1\">\n$ sudo apt-get install npm\n$ sudo npm install wikit -g\n$ sudo ln -s \/usr\/bin\/nodejs \/usr\/bin\/node\n<\/pre>\n<p>The link is to avoid the following issue:<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1\">\n$ wikit postgresql\n\/usr\/bin\/env: \u2018node\u2019: No such file or directory\n<\/pre>\n<p>For Fedora\/RedHat\/Centos you should use yum:<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1\">\n$ sudo yum install npm -y\n$ sudo npm install wikit -g\n<\/pre>\n<p>Once you have that you can use wikit to query wikipedia (summary):<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [1]\">\n$ wikit postgresql\n PostgreSQL, often simply Postgres, is an object-relational database management system\n (ORDBMS) with an emphasis on extensibility and standards compliance. As a database\n server, its primary functions are to store data securely and return that data in\n response to requests from other software applications. It can handle workloads ranging\n from small single-machine applications to large Internet-facing applications (or\n for data warehousing) with many concurrent users; on macOS Server, PostgreSQL is\n the default database; and it is also available for Microsoft Windows and Linux (supplied\n in most distributions). PostgreSQL is ACID-compliant and transactional. PostgreSQL\n has updatable views and materialized views, triggers, foreign keys; supports functions\n and stored procedures, and other expandability. PostgreSQL is developed by the PostgreSQL\n Global Development Group, a diverse group of many companies and individual contributors.\n It is free and open-source, released under the terms of the PostgreSQL License,\n a permissive software license.\n<\/pre>\n<p>Cool. When you want to read the output in your default browser instead of the console you can do this as well by adding then &#8220;-b&#8221; flag:<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [1]\">\n$ wikit postgresql -b\n<\/pre>\n<p>When you want to open the &#8220;disambiguation&#8221; page in your browser:<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [1]\">\n$ wikit postgresql -d\n<\/pre>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Selection_013-1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Selection_013-1.png\" alt=\"Selection_013\" width=\"1357\" height=\"577\" class=\"aligncenter size-full wp-image-18538\" \/><\/a><\/p>\n<p>Changing the language is possible as well with the &#8220;-lang&#8221; switch:<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [1]\">\n$ wikit --lang de postgresql \n PostgreSQL (englisch [,p\u0259\u028astg\u0279\u025bs kj\u028a'\u025bl]), oft kurz Postgres genannt, ist ein freies,\n objektrelationales Datenbankmanagementsystem (ORDBMS). Seine Entwicklung begann\n in den 1980er Jahren, seit 1997 wird die Software von einer Open-Source-Community\n weiterentwickelt. PostgreSQL ist weitgehend konform mit dem SQL-Standard ANSI-SQL\n 2008, d.h. der Gro\u00dfteil der Funktionen ist verf\u00fcgbar und verh\u00e4lt sich wie definiert.\n PostgreSQL ist vollst\u00e4ndig ACID-konform (inklusive der Data Definition Language),\n und unterst\u00fctzt erweiterbare Datentypen, Operatoren, Funktionen und Aggregate. Obwohl\n sich die Entwicklergemeinde sehr eng an den SQL-Standard h\u00e4lt, gibt es dennoch eine\n Reihe von PostgreSQL-spezifischen Funktionalit\u00e4ten, wobei in der Dokumentation bei\n jeder Eigenschaft ein Hinweis erfolgt, ob dies dem SQL-Standard entspricht, oder\n ob es sich um eine spezifische Erweiterung handelt. Dar\u00fcber hinaus verf\u00fcgt PostgreSQL\n \u00fcber ein umfangreiches Angebot an Erweiterungen durch Dritthersteller, wie z.B.\n PostGIS zur Verwaltung von Geo-Daten. PostgreSQL ist in den meisten Linux-Distributionen\n enthalten. Apple liefert ab der Version Mac OS X Lion (10.7) PostgreSQL als Standarddatenbank\n<\/pre>\n<p>Quite helpful &#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wouldn&#8217;t it be nice if you could search wikipedia from the command line? I often need to quickly look up a definition or want to know more about a specific topic when I am working on the command line. So here is how you can do it &#8230;<\/p>\n","protected":false},"author":28,"featured_media":10458,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[229],"tags":[73,77,1172],"type_dbi":[],"class_list":["post-10457","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-database-administration-monitoring","tag-linux","tag-postgresql","tag-wikit"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v28.8 (Yoast SEO v28.8) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Searching wikipedia from the command line - dbi Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/searching-wikipedia-from-the-command-line\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Searching wikipedia from the command line\" \/>\n<meta property=\"og:description\" content=\"Wouldn&#8217;t it be nice if you could search wikipedia from the command line? I often need to quickly look up a definition or want to know more about a specific topic when I am working on the command line. So here is how you can do it &#8230;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/searching-wikipedia-from-the-command-line\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2017-09-28T09:41:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Selection_013-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1357\" \/>\n\t<meta property=\"og:image:height\" content=\"577\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Open source Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Open source Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/searching-wikipedia-from-the-command-line\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/searching-wikipedia-from-the-command-line\\\/\"},\"author\":{\"name\":\"Open source Team\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/4bae5e5dd8c7d48edbd948772b49b202\"},\"headline\":\"Searching wikipedia from the command line\",\"datePublished\":\"2017-09-28T09:41:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/searching-wikipedia-from-the-command-line\\\/\"},\"wordCount\":150,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/searching-wikipedia-from-the-command-line\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2022\\\/04\\\/Selection_013-1.png\",\"keywords\":[\"Linux\",\"PostgreSQL\",\"wikit\"],\"articleSection\":[\"Database Administration &amp; Monitoring\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/searching-wikipedia-from-the-command-line\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/searching-wikipedia-from-the-command-line\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/searching-wikipedia-from-the-command-line\\\/\",\"name\":\"Searching wikipedia from the command line - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/searching-wikipedia-from-the-command-line\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/searching-wikipedia-from-the-command-line\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2022\\\/04\\\/Selection_013-1.png\",\"datePublished\":\"2017-09-28T09:41:50+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/4bae5e5dd8c7d48edbd948772b49b202\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/searching-wikipedia-from-the-command-line\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/searching-wikipedia-from-the-command-line\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/searching-wikipedia-from-the-command-line\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2022\\\/04\\\/Selection_013-1.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2022\\\/04\\\/Selection_013-1.png\",\"width\":1357,\"height\":577},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/searching-wikipedia-from-the-command-line\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Searching wikipedia from the command line\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/4bae5e5dd8c7d48edbd948772b49b202\",\"name\":\"Open source Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/eb4fb12e386e8c41fdef0733e8114594cf2653e4f55e9fa2161442b8eaf3f657?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/eb4fb12e386e8c41fdef0733e8114594cf2653e4f55e9fa2161442b8eaf3f657?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/eb4fb12e386e8c41fdef0733e8114594cf2653e4f55e9fa2161442b8eaf3f657?s=96&d=mm&r=g\",\"caption\":\"Open source Team\"},\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/author\\\/open-source-team\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Searching wikipedia from the command line - dbi Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/searching-wikipedia-from-the-command-line\/","og_locale":"en_US","og_type":"article","og_title":"Searching wikipedia from the command line","og_description":"Wouldn&#8217;t it be nice if you could search wikipedia from the command line? I often need to quickly look up a definition or want to know more about a specific topic when I am working on the command line. So here is how you can do it &#8230;","og_url":"https:\/\/www.dbi-services.com\/blog\/searching-wikipedia-from-the-command-line\/","og_site_name":"dbi Blog","article_published_time":"2017-09-28T09:41:50+00:00","og_image":[{"width":1357,"height":577,"url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Selection_013-1.png","type":"image\/png"}],"author":"Open source Team","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Open source Team","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/searching-wikipedia-from-the-command-line\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/searching-wikipedia-from-the-command-line\/"},"author":{"name":"Open source Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/4bae5e5dd8c7d48edbd948772b49b202"},"headline":"Searching wikipedia from the command line","datePublished":"2017-09-28T09:41:50+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/searching-wikipedia-from-the-command-line\/"},"wordCount":150,"commentCount":0,"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/searching-wikipedia-from-the-command-line\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Selection_013-1.png","keywords":["Linux","PostgreSQL","wikit"],"articleSection":["Database Administration &amp; Monitoring"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/searching-wikipedia-from-the-command-line\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/searching-wikipedia-from-the-command-line\/","url":"https:\/\/www.dbi-services.com\/blog\/searching-wikipedia-from-the-command-line\/","name":"Searching wikipedia from the command line - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/searching-wikipedia-from-the-command-line\/#primaryimage"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/searching-wikipedia-from-the-command-line\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Selection_013-1.png","datePublished":"2017-09-28T09:41:50+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/4bae5e5dd8c7d48edbd948772b49b202"},"breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/searching-wikipedia-from-the-command-line\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/searching-wikipedia-from-the-command-line\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/searching-wikipedia-from-the-command-line\/#primaryimage","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Selection_013-1.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Selection_013-1.png","width":1357,"height":577},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/searching-wikipedia-from-the-command-line\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Searching wikipedia from the command line"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/4bae5e5dd8c7d48edbd948772b49b202","name":"Open source Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/eb4fb12e386e8c41fdef0733e8114594cf2653e4f55e9fa2161442b8eaf3f657?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/eb4fb12e386e8c41fdef0733e8114594cf2653e4f55e9fa2161442b8eaf3f657?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/eb4fb12e386e8c41fdef0733e8114594cf2653e4f55e9fa2161442b8eaf3f657?s=96&d=mm&r=g","caption":"Open source Team"},"url":"https:\/\/www.dbi-services.com\/blog\/author\/open-source-team\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/10457","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/28"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=10457"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/10457\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media\/10458"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=10457"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=10457"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=10457"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=10457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}