GOPHFILT(1)
π GOPHFILT(1) π
okay so bestie, welcome to GOPHFILT(1), straight out of the General Commands Manual β this is the whole vibe, let's get into it π«Ά
β¨ NAME β¨
gophfilt β oneshot connection to a gopher document server π
πΈ SYNOPSIS πΈ
gophfilt [-t type] [-p path] [-h host] [-s port] [-i item]
π¦ DESCRIPTION π¦
ngl, gophfilt is a oneshot, command line driven version of a gopher client, and it's literally made for shell- or awk-scripts. it's giving "tiny but mighty" π
so, the Internet Gopher is a distributed document delivery service. it lets even a total neophyte user access all kinds of data sitting on multiple hosts in a seamless fashion β no cap. the way it works: it presents the user a hierarchical arrangement of documents, and it uses a client-server communications model. the Internet Gopher Server accepts simple queries, and responds by sending the client a document. iconic behaviour, honestly π
now, gophfilt can operate in either of two modes:
mode one is in the spirit of unix filters β it accepts requests on stdin and writes results to stdout. the request is in the form of a tab-delimited .cache item. for example:
1Master Gopher at UMN 1/ gopher.tc.umn.edu 70
(or in string notation)
"1Master Gopher at UMN\t1/\tgopher.tc.umn.edu\t70\n"
this example would result in the retrieval of the root directory from the Master Gopher. slay π
mode two lets you construct a gopher request from arguments provided on the command line. in this "manual" mode, at least the path and type items must be provided, fr fr. the default host and port are taken from the file conf.h at module build time. iykyk.
here's the flag rundown, bestie, every single one:
-pβ specifies the path to the requested data. from our "filter" example above, the field1/is the path.-tβ specifies the type of the requested data. from our example above, the leading1character is the type (directory, in this case).-hβ specifies the name of the host where the server is to be found. the default host (CLIENT1_HOSTfrom fileconf.h) is used if not provided.-sβ specifies the service (port) that the server is monitoring. the default port (CLIENT1_PORTfrom fileconf.h) is used if not provided.-iβ specifies a search item. this field immediately follows the path field in the transmitted request.-Tβ specifies a receiver timeout in seconds. this is the maximum time thatgophfiltwill wait for more data.
β οΈ okay important one: if the "timeout" return value is noticed by the calling program, any data received to that point should be considered suspect. don't trust it, bestie, that data is going through it π
to recreate the request from our example using manual operation, one would execute the following command:
gophfilt -t 1 -p 1/ -h gopher.tc.umn.edu -s 70
π₯ MORE EXAMPLES π₯
here is an example that demonstrates the usefulness of the gophfilt. this specific example only works on the Rutgers campus, but it illustrates the point β lowkey iconic π§
gophfilt -t 0 -p "webster default SPELL" -i flatulence
-h hangout.rutgers.edu -s 770 | gophfilt
this example requests a selector item from the Webster's Dictionary, and then pipes that item to gophfilt for subsequent retrieval of the actual definition. the result is available on stdout for use. periodt π
β RETURNS β
gophfilt returns the following completion codes on exit:
0β successful completion. π-1β error in parsing command line arguments.-2β manual operation and insufficient parameters were provided.-3β piped operation and unable to read selector from stdin.-4β unsupported item type requested.-5β unable to connect to specified host and port combination.-6β error encountered writing to stdout.-7β timeout occurred while waiting for more data.
π not a single one of those negative codes is a vibe, but now you know exactly what each one means, so you're basically unstoppable π
aaaand that's the whole page bestie β you just read GOPHFILT(1) from the General Commands Manual, and honestly? you ate. go filter some gopher docs, main character energy only πβ¨π
π¦ where this page comes from
- debian bookworm: gopher 3.0.17.3+nmu1+b1
- debian trixie: gopher 3.0.18
- nixos 26.05: gopher 3.0.19
- nixpkgs unstable: gopher 3.0.19
- ubuntu jammy: gopher 3.0.17.3+nmu1
- ubuntu noble: gopher 3.0.17.3+nmu1
- ubuntu questing: gopher 3.0.19+nmu1
- ubuntu resolute: gopher 3.0.19+nmu1build1
- ubuntu stonking: gopher 3.0.19+nmu1build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms