urlview(1)
π urlview β URL extractor/launcher π
okay bestie, gather round, because urlview is one of those tiny little tools that is lowkey carrying your whole terminal workflow and nobody ever talks about it. it's from the General Commands Manual, section 1, and it is, and I quote, a URL extractor/launcher. that's the whole NAME. short king behavior. π
β¨ SYNOPSIS β¨
urlview filename [ filename ... ]
like. you feed it files. it does the rest. periodt. π
πΈ DESCRIPTION πΈ
so urlview is a screen oriented program β meaning it takes over your terminal and gives you a whole lil interactive menu, very main character β that goes through text files, extracts the URLs out of them, and then shows you a menu where you can pick one and launch a command to view that specific item.
it's giving "I found 47 links in this email and I am NOT copy-pasting them one by one." iconic. π¦
π CONFIGURATION π
on startup, urlview tries to read ~/.urlview. if that file doesn't exist, it falls back to the system wide file at /etc/urlview.conf. so it checks your personal vibe first, then the group chat default. π«Ά
the page says there are two configuration commands (order does not matter) β and then the list keeps going, so buckle up, we're reading all of them:
REGEXP regexpβurlviewuses a regular expression to pull URLs out of the text files you gave it.\r,\t,\nand\fare all converted to their normalprintf(3)meanings. the defaultREGEXPis:
(((http|https|ftp|gopher)|mailto):(//)?[^ <>"\t]*|(www|ftp)[0-9]?\.[-a-z0-9.]+)[^ .,;\t\n\r<">\):]?[^, <>"\t]*[^ .,;\t\n\r<">\):]
COMMAND commandβ if your specified command contains a%s, that gets substituted with the URL that was requested. otherwise, the URL is just appended to theCOMMANDstring. the defaultCOMMANDis:
/usr/bin/url_handler.sh
β οΈ note, and this one matters: you should never put single quotes around the%s.urlviewdoes this for you, and it also makes sure that single quotes eventually showing up inside the URL are handled properly. (and note that this shouldn't even happen with the default regular expression, because that regexp explicitly excludes single quotes.) so likeβ¦ don't help. you're not helping. π
WRAP choiceβ enable or disable URL wrapping. valid values for choice are:yes,no(case insensitive). if this option isn't supplied at all, the default behaviour is to disable wrapping. no wrapping unless you say so, fr fr. πQUITONLAUNCHβ this one will causeurlviewto quit after you launch a URL. no lingering, no small talk, in and out. π
π FILES π
/etc/urlview.confβ the system-wideurlviewconfiguration file π~/.urlviewβ yoururlviewconfiguration file π
π ENVIRONMENT π
if the environment variable BROWSER is set to a browser command, or to a colon-delimited list of commands to try, then that specified browser is what gets used. %s gets replaced with the quoted url to view. and if %s is not part of a command, the url is simply appended to the command.
but here's the plot twist π β the BROWSER environment variable is honored only if the rc-file doesn't contain the COMMAND option. and the rc-file provided by the Debian package does contain a COMMAND option. so if you're on Debian and you're like "why is my BROWSER being ignored π" β that's why. mystery solved, you're welcome.
π¦ SEE ALSO π¦
printf(3), regcomp(3), regex(7), environ(7)
β AUTHOR β
- Michael Elkins
<me@sigpipe.org> - Modified for Debian by Luis Francisco Gonzalez
<luisgh@debian.org>and Emanuele Rocca<ema@debian.org>. - Modified for SuSE by Dr. Werner Fink
<werner@suse.de>and Stepan Kasal<kasal@suse.cz>. - Changes put together by Thomas Roessler
<roessler@does-not-exist.org>.
and that's the whole page bestie πβ¨ the urlview(1) entry, straight out of the General Commands Manual β go extract some URLs, you absolute legend. no cap, you ate. π ππ«Ά
π¦ where this page comes from
- centos-stream 10: urlview 0.9-39.20131022git08767a.el10 Β· GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.0-or-later
- centos-stream 9: urlview 0.9-31.20131022git08767a.el9 Β· GPLv2+
- fedora 43: urlview 0.9-40.20131022git08767a.fc43 Β· GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 44: urlview 0.9-41.20131022git08767a.fc44 Β· GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.0-or-later
- Copyright (c) 1997 Michael Elkins <me@cs.hmc.edu>
- Copyright (c) 2000 Thomas Roessler <roessler@does-not-exist.org>
- Copyright (c) 2012 Michael Elkins <me@sigpipe.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms