WIKIPEDIA2TEXT(1)
π WIKIPEDIA2TEXT(1) π
okay so bestie, welcome to the General Commands Manual entry for wikipedia2text β yes it's a section 1 command, yes it's iconic, let's get into it πΈ
β¨ NAME β¨
wikipedia2text β literally just displays Wikipedia entries right there on your command line π
π¦ SYNOPSIS π¦
wikipedia2text [-BCnNoOpPsSuU] [-b prog] [ {-c | -i | -I } patt]
[-l lang] [-W base-url] [-X "browser options"] Query
wikipedia2text -o [-b prog] [-l lang] Query
wikipedia2text [-h]
wikipedia2text -v
wikipedia2text -r
π DESCRIPTION π
This manual page documents briefly the wikipedia2text command. Brief. But make it cute π
So what does it DO? wikipedia2text fetches and renders Wikipedia articles using a text-mode web-browser β and rn it recognises elinks, links2, links, lynx and w3m β and then it displays the text of the article on STDOUT, or respectively in a pager. No browser window, no 47 tabs, no chaos. Just vibes and text πβ¨
π OPTIONS π
The program recognizes the following command line options β and yes, we're going through ALL of them, no skipping, that's the rule π
-b progβ Use program prog as the browser. You pick, it obeys π«Ά-Bβ Do NOT use the browser that's configured via configuration file or environment. Ignore the settings, bestie, we're going rogue π-c patt,-I pattβ Colorize case-sensitive pattern patt in the output. Uppercase matters here, fr fr πΈ-C,-Nβ Colorize output. Full rainbow moment π-hβ Show help and a summary of options. When in doubt,-hit out π-i pattβ Colorize case-insensitive pattern patt in the output. Any casing, we don't judge β¨-l langβ use Wikipedia in language lang. Peep the Wikipedia Languages entry elsewhere in this document π-nβ Do not colorize output. Monochrome era π-oβ Open the Wikipedia page in the browser. Take it outside πΆ-Oβ Do not open the Wikipedia page in the browser. Stay inside, stay cozy π-pβ Use a pager (set by default). This is the default bestie, it's already on π-Pβ Don't use a pager. Straight to STDOUT, no middleman π-rβ Display a random Wikipedia article. Gambling but make it educational π²-sβ Display only the summary of the Wikipedia article. TL;DR mode π-Sβ Display the full content of the Wikipedia article and not only the summary. Give me EVERYTHING π-uβ Just print the URL of the Wikipedia page and exit. Link drop and dip π-Uβ Display the full content of the Wikipedia article and not only print the URL of the page. We're not doing the shortcut version π«-vβ Show version number. Number reveal β¨-W base-urlβ use base-url as base URL for wikipedia (e.g. use a different wiki), querying this URL will happen by appending the search term. Different wiki? Different vibe? Sure π-X browser-optionsβ pass through browser-options to browser, e.g."-width 180".
β οΈ Warning: must be in quotes if multiple options should be passed; browser specific, not checked. So like, nobody's gonna catch you if it's wrong, but also nobody's gonna catch you if it's wrong π
πΈ ENVIRONMENT πΈ
The following environment variables are recognized β set them and they become the default behavior, lowkey powerful:
ABROWSERβ Browser to use as default instead of to found or configured web browser. Your browser, your rules π¦IGNCASEβ Default value for case-sensitivity of colorizing the output. Can be set to"true"or"false". Those are the only two options, don't get creative πLOCALβ Default value for language in which Wikipedia should be used. Peep the Wikipedia Languages entry elsewhere in this document πOUTPUTURLβ Determines, ifwikipedia2textshould display only the URL of the Wikipedia article by default. Can be set to"true"or"false". Yep,"true"or"false", that's it πPAGERβ Default value for pager to use. Can also be set to"true", in which case,wikipedia2texttries to figure out the appropriate pager, or"false", which means not to use a pager at all. Three moods: a pager, a mystery pager, or no pager πSHORTβ Determines, ifwikipedia2textshould display only the summary of the Wikipedia article by default. Can be set to"true"or"false"β¨USEBROWSERβ Determines, ifwikipedia2textshould open the Wikipedia page viaopenurlin the globally set default browser, i.e. Firefox or Konqueror, by default. Can be set to"true"or"false"π₯
π FILES π
$HOME/.wikipedia2textrcβ Will be sourced fromwikipedia2texton startup. Should contain variable assignments. The same variables as for the environment are recognised. So basically, your lil config bestie that runs the second you start up π«Ά
π WIKIPEDIA LANGUAGES π
wikipedia2text currently supports the following Wikipedia languages β the whole roster, no cuts, no skips:
afβ Cape Dutch (Afrikaans)alsβ Alemanniccaβ Catalancsβ Czechdaβ Danishdeβ Germanenβ Englisheoβ Esperantoesβ Spanishfiβ Finnishfrβ Frenchhuβ Hungarianiaβ Interlinguaisβ Islandicitβ Italianlaβ Latinlbβ Luxembourgianndsβ Low Germannlβ Dutchnn,noβ Norwegian (Nynorsk and BokmΓ₯l)plβ Polishptβ Portuguesermβ Rhaeto-Romanicroβ Romaniansimpleβ Simple Englishskβ Slovakslβ Sloveniansvβ Swedishtrβ Turkish
π¦ SEE ALSO π¦
elinks(1), links(1), links2(1), lynx(1), w3m(1) β the browser besties that make all this possible π
π AUTHOR π
wikipedia2text was written by Christian Brabandt <cb@256bit.org>. Patches also from Axel Beckert <abe@deuxchevaux.org> π
This manual page was written by Axel Beckert <abe@deuxchevaux.org> for the Debian system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License (GPL), Version 2 any later version published by the Free Software Foundation. So go forth and remix, legally πβ¨
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
π HISTORY π
wikipedia2text was first released by Christian Brabandt on in his blog (link to URL http://blog.256bit.org/archives/126-Wikipedia-in-der-Shell.html) with as script named wiki. Some users may find it useful to create an alias with that name for speeding up the typing of a wikipedia2text command if no other command of that name is present. Shorter name, same energy, iconic behavior tbh π
β OTHER INFO β
The current version of wikipedia2text should be available at on Christian Brabandt's website (link to URL http://www.256bit.org/~chrisbra/wiki) . Go get the fresh version bestie π
and that's the whole page!! π we made it to the bottom of the General Commands Manual, and this page signs off as WIKIPEDIA2TEXT(1) β that's the manual name and the footer, so consider yourself fully oriented. go read some Wikipedia in your terminal, you absolute main character πβ¨
π¦ where this page comes from
- debian bookworm: wikipedia2text 0.14-4 Β· BSD-2-Clause
- debian trixie: wikipedia2text 0.14-4 Β· BSD-2-Clause
- ubuntu jammy: wikipedia2text 0.14-3 Β· BSD-2-Clause
- ubuntu noble: wikipedia2text 0.14-4 Β· BSD-2-Clause
- ubuntu questing: wikipedia2text 0.14-4
- ubuntu resolute: wikipedia2text 0.14-4build1 Β· BSD-2-Clause
- ubuntu stonking: wikipedia2text 0.14-4build1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms