Difference between revisions of "unixkcd"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
m
(HUGE TABLE UPDATE COME LOOK AT IT)
Line 7: Line 7:
 
| ldomain  = uni
 
| ldomain  = uni
 
| extra    = yes
 
| extra    = yes
}}
+
}}{{TOC}}
{{TOC}}
 
  
 
==Explanation==
 
==Explanation==
Line 16: Line 15:
 
*Also, explain the jokes in the [[#Undocumented commands]] section and the sections below it.}}This is another one of Randall's [[:Category: April fools' comics|April fools' comics]]. On April 1, 2010, [[Randall Munroe|Randall]] altered the [https://xkcd.com xkcd.com] website to mimic a {{w|Unix}} {{w|command-line interface}}. This interface is still available on [https://uni.xkcd.com uni.xkcd.com] and the source code is [https://github.com/chromakode/xkcdfools available on GitHub]. The comic [[721: Flatland]], released on March 31, 2010, was still up on April 1, 2010, but was unrelated to the Unix interface. The terminal only lists a few available commands, but most commands are undocumented.
 
*Also, explain the jokes in the [[#Undocumented commands]] section and the sections below it.}}This is another one of Randall's [[:Category: April fools' comics|April fools' comics]]. On April 1, 2010, [[Randall Munroe|Randall]] altered the [https://xkcd.com xkcd.com] website to mimic a {{w|Unix}} {{w|command-line interface}}. This interface is still available on [https://uni.xkcd.com uni.xkcd.com] and the source code is [https://github.com/chromakode/xkcdfools available on GitHub]. The comic [[721: Flatland]], released on March 31, 2010, was still up on April 1, 2010, but was unrelated to the Unix interface. The terminal only lists a few available commands, but most commands are undocumented.
 
===Documented commands===
 
===Documented commands===
* <code>next</code> shows the next comic. It shows the error "Time travel mode not enabled" on the last comic (see <code>[[#Undocumented commands|enable time travel]]</code> below).
+
{| class="sortable wikitable"
* <code>prev</code> shows the previous comic.
+
! Command
* <code>first</code> shows the first comic.
+
! Response
* <code>last</code> shows the last comic.
+
! Explanation
* <code>display [number]</code> shows the comic with the specified number. (Trying to display comic [[404: Not Found|404]] will result in an endless loading attempt.)
+
|-
* <code>random</code> shows a random comic.
+
|<code>'''next'''</code>
* <code>ls</code> shows the content of the current directory.
+
|(''shows the next comic'')
* <code>cat [filename]</code> shows the content of the file, or "You're a kitty!" if [filename] is left blank.
+
|It shows the error "Time travel mode not enabled" on the last comic (see <code>'''[[#Undocumented commands|enable time travel]]'''</code> below).
* <code>cd [directory]</code> changes to the specified directory.
+
|-
 +
|<code>'''prev'''</code>
 +
|(''shows the previous comic'')
 +
|
 +
|-
 +
|<code>'''first'''</code>
 +
|(''shows the first comic'')
 +
|
 +
|-
 +
|<code>'''last'''</code>
 +
|(''shows the last comic'')
 +
|
 +
|-
 +
|<code>'''display [number]'''</code>
 +
|(''shows the comic with the specified number'')
 +
|Trying to display comic [[404: Not Found]] will result in an endless loading attempt.
 +
|-
 +
|<code>'''random'''</code>
 +
|(''shows a random comic'')
 +
|
 +
|-
 +
|<code>'''ls'''</code> ''or'' <code>'''dir'''</code>
 +
|(''shows the content of the current directory'')
 +
|
 +
|-
 +
|<code>'''cat [filename]'''</code>
 +
|(''shows the content of the file'')
 +
|If [filename] is left blank, shows "You're a kitty!" instead.
 +
|-
 +
|<code>'''cd [directory]'''</code>
 +
|(''changes to the specified directory'')
 +
|
 +
|}
  
 
===Undocumented commands===
 
===Undocumented commands===
* <code>:(){:|:&};:</code> This command, otherwise known as a [https://askubuntu.com/questions/159491/why-did-the-command-make-my-system-lag-so-badly-i-had-to-reboot shell fork bomb] will make the terminal display the <code>[. . .]</code> loading text indefinitely, as though it crashed.
+
{| class="sortable wikitable"
* <code>a/s/l</code> [https://www.urbandictionary.com/define.php?term=a%2Fs%2Fl A/S/L] is not a Unix command, but an acronym of Age/Sex/Location. The following replies are possible:
+
! Command
 +
! Response
 +
! Explanation
 +
|-
 +
|<code>'''<nowiki>:(){:|:&};:</nowiki>'''</code>
 +
|<code>[...]</code> (''repeats indefinitely'')
 +
|This command, otherwise known as a [https://askubuntu.com/questions/159491/why-did-the-command-make-my-system-lag-so-badly-i-had-to-reboot shell fork bomb] will make the terminal display the <code>[...]</code> loading dots indefinitely, as though it crashed.
 +
|-
 +
|<code>'''a/s/l'''</code> ''or'' <code>'''asl'''</code>
 +
|
 +
|[https://www.urbandictionary.com/define.php?term=a%2Fs%2Fl A/S/L] is not a Unix command, but an acronym of Age/Sex/Location. The following replies are possible:
 
** "2/AMD64/Server Rack", answered as if the server replied.
 
** "2/AMD64/Server Rack", answered as if the server replied.
 
** "328/M/Transylvania", answered by {{w|Dracula}}.
 
** "328/M/Transylvania", answered by {{w|Dracula}}.
Line 37: Line 78:
 
** "7,831/F/Lothlórien", answered by {{w|Galadriel}} or another elf.
 
** "7,831/F/Lothlórien", answered by {{w|Galadriel}} or another elf.
 
** "42/M/FBI Field Office", answered by an FBI agent (referencing the old [https://tvtropes.org/pmwiki/pmwiki.php/Main/ThereAreNoGirlsOnTheInternet trope] that all girls on the internet are FBI agents impersonating them).
 
** "42/M/FBI Field Office", answered by an FBI agent (referencing the old [https://tvtropes.org/pmwiki/pmwiki.php/Main/ThereAreNoGirlsOnTheInternet trope] that all girls on the internet are FBI agents impersonating them).
* <code>apt-get</code> replies "This APT has Super Cow Powers.". The <code>apt-get</code> command is part of the Debian package manager {{w|Advanced_Packaging_Tool|APT}}. This reply is one of the built-in Easter eggs.
+
|-
* <code>apt-get moo</code> replies "Have you mooed today" with an ASCII cow.
+
|<code>'''apt-get'''</code>
* <code>asl</code> same as <code>a/s/l</code>.
+
|<code>This APT has Super Cow Powers.'''</code>
* <code>bash</code> replies "You bash your head against the wall. It's not very effective.". {{w|Bash}} is a shell for POSIX-based systems.
+
|The <code>'''apt-get'''</code> command is part of the Debian package manager {{w|Advanced_Packaging_Tool|APT}}. This reply is one of the built-in Easter eggs.
* <code>buy stuff</code> same as <code>cd store</code>.
+
|-
* <code>cat [number]/alt.txt</code> displays the title text of the specified comic.
+
|<code>'''apt-get moo'''</code>
* <code>cat</code> (without a filename, or an invalid one) will show "You're a kitty!", possibly referencing [[231: Cat Proximity]].
+
|
* <code>cheat</code> promotes the [[Store|xkcd Store]].
+
        (__)
* <code>clear</code> clears the screen.
+
        (oo)
* <code>curl</code> creates an iframe to the URL specified
+
  /------\/  
* <code>date</code> replies "March 32nd" (instead of April 1st), which is not a real date.{{citation needed}}
+
  / |    || 
* <code>dir</code> same as <code>ls</code>.
+
* /\---/
* <code>display title text</code> will print: display: unable to open image "title": No such file or directory. in red text.
+
    ~~  ~~ 
* <code>echo</code> replies "Echo ... echo ... echo ...". The {{w|Echo_(command)|echo}} command is used to print text to the terminal.
+
* <code>ed</code> replies "You are not a diety ''[sic]''.". {{w|Ed_(text_editor)|ed}} is a very simple text editor. It is usually not considered very user-friendly (see also <code>vi</code> and <code>emacs</code>).
+
...."Have you mooed today?"...
* <code>emacs</code> replies "You should use Vim.". References [[378: Real Programmers]].
+
|Displays an ASCII drawing of a cow.
* <code>enable time travel</code> replies "TARDIS error: Time Lord missing.". A {{w|Doctor Who}} reference. See also the <code>next</code> command.
+
|-
* <code>exit</code> will end the terminal session.
+
|<code>'''bash'''</code>
* <code>find kitten</code> showed the {{w|robotfindskitten}} game (the link to the Flash version no longer works, but an HTML version is available [http://robotfindskitten.org/play/robotfindskitten/ here]).
+
|<code>You bash your head against the wall. It's not very effective.</code>
* <code>find</code> replies "What do you want to find? Kitten would be nice.".
+
|{{w|Bash}} is a shell for POSIX-based systems.
* <code>finger</code> replies "Mmmmmm...". <code>finger USER</code> is used on UNIX-like systems to get information about another USER (here, Randall is taking advantage of its suggestive name... pardon the pun).
+
|-
* <code>fuck</code> replies "I have a headache.".
+
|<code>'''cat [number]/alt.txt'''</code>
* <code>goto [any]</code> shows comic [[292: goto]] and asks if you meant <code>display</code> instead.
+
|(''displays the title text of the specified comic'')
* <code>go back</code> replies "You cannot go back."
+
|
* <code>go down</code> replies "On our first date?"
+
|-
* <code>halp</code> same as <code>help</code>.
+
|<code>'''cat'''</code> (''without a filename, or an invalid one'')
* <code> Hello Joshua </code> replies "How about a nice game of Global Thermonuclear War?". A reference to the {{w|WarGames}} movie.
+
|<code>You're a kitty!</code>
* <code>hello</code> replies "Hello.". A second reply "Why hello there!" is coded, but it is never used.
+
|A reference to [[231: Cat Proximity]].
* <code>help</code> says "That would be cheating!".
+
|-
* <code>hi</code> replies "Hi.".
+
|<code>'''cheat'''</code> ''or'' <code>'''buy stuff'''</code>
* <code>hint</code> randomly replies "We offer some nice polos.", "This terminal will remain available at xkcd.com/unixkcd/", "Use the source, Luke!" or "There are cheat codes.".
+
|(''opens the [[Store|xkcd Store]]'')
* <code>i read the source code</code> replies "<3".
+
|
* <code>irc [nick]</code> starts an {{w|IRC}} session on the xkcd channel on irc.foonetic.net.
+
|-
* <code>kill</code> replies "Terminator deployed to 1984.". A reference to the {{w|The_Terminator|Terminator}} movie. In Bash, <code>kill</code> is used to end a process.
+
|<code>'''clear'''</code>
* <code>latest</code> displays the latest comic.
+
|(''clears the screen'')
* <code>locate [filename]</code> is normally used to locate a file in a directory. It will give humorous results when searching for <code>ninja</code>, <code>keys</code>, <code>joke</code>, <code>problem</code> and <code>raptor</code>.
+
|-
* <code>logout</code> same as <code>exit</code>.
+
|<code>'''curl'''</code>
* <code>lpr</code> replies "PC LOAD LETTER". {{w|Line_Printer_Daemon_protocol|lpr}} is a command to print documents. {{w|PC_LOAD_LETTER}} is a printer error.
+
|(''creates an iframe to the URL specified'')
* <code>make love</code> replies "I put on my robe and wizard hat.". A reference to this [http://www.albinoblacksheep.com/text/bloodninja roleplay chat transscript] (NSFW), also mentioned in [[442: xkcd Loves the Discovery Channel]]. <code>make love</code> is a standard Unix joke, because the reply is "make: don't know how to make love.".
+
|-
* <code>make me a sandwich</code> behaves like [[149: Sandwich]].
+
|<code>'''date'''</code>
* <code>man [command]</code> show unhelpful information about the command (only <code>last</code>, <code>help</code>, <code>next</code>, <code>cat</code> or no command are supported).
+
|<code>March 32nd
* <code>moo</code> replies "moo".
+
|Instead of April 1st, which is not a real date.{{Citation needed}}
* <code>more</code> replies "Oh, yes! More! More!". The {{w|More_(command)|more}} command is used to paginate output.
+
|-
* <code>nano</code> replies "Seriously? Why don't you just use Notepad.exe? Or MS Paint?". {{w|GNU_nano|Nano}} is another text editor for Unix systems (see <code>vi</code> and <code>emacs</code>).
+
|<code>'''display title text'''</code>
* <code>ping</code> replies "There is another submarine three miles ahead, bearing 225, forty fathoms down.". The {{w|Ping_(networking_utility)|ping}} command is used to measure round trip times to a destination. The name does indeed originate from {{w|sonar}} technology.
+
|<code><span style=" colour: red;">display: unable to open image "title": No such file or directory.</span></code>
* <code>pwd</code> replies "You are in a maze of twisty passages, all alike.". The {{w|pwd}} command prints the current working directory (see <code>look</code>). The output is a reference to {{w|Colossal Cave Adventure}}.
+
|in red text.
* <code>poweroff</code> same as <code>shutdown</code>.
+
|-
* <code>quit</code> same as <code>exit</code>.
+
|<code>'''echo'''</code>
* <code> reddit [number]</code> shows the [https://www.reddit.com/ Reddit] voting bar for the specified comic (or xkcd when no number is specified).
+
|<code>Echo ... echo ... echo ...". The {{w|Echo_(command)|echo}} command is used to print text to the terminal.
* <code>rm [filename]</code> will "remove" a file, while <code>rm -r</code> will remove a directory. (<code>sudo rm -rf /</code> will break all commands until the page is reloaded.)
+
|-
* <code>serenity</code> replies "You can't take the sky from me.". This is a line from the Balad of Serenity from the {{w|Firefly_(TV_series)|Firefly}} TV series. Serenity is also the name of an Operating System (that Randall probably wasn't thinking of): [https://www.serenityos.org/ SerenityOS].
+
|<code>'''ed'''</code>
* <code>shutdown</code> replies "Must be root.". See also <code>sudo poweroff</code>.
+
|<code>You are not a diety</code>
* <code>ssh</code> replies "ssh, this is a library.". {{w|Secure_Shell|ssh}} is the command to start a secure shell, but it also resembles the "{{w|Shh}}" sound.
+
|{{w|Ed (software)|ed}} is a very simple text editor. It is usually not considered very user-friendly. See also <code>'''vi'''</code> and <code>'''emacs'''</code>.
* <code>su</code> replies "God mode activated. Remember, {{w|With great power comes great responsibility|with great power comes great}} ... aw, screw it, go have fun.". The {{w|Su_(Unix)|su}} command is used to log in as an upper user, which gives you full and potentially dangerous access to the system. On some systems, "with great power comes great responsibility" is also part of a message that is printed the first time <code>sudo</code> is used.
+
|-
* <code>sudo [command]</code> executes the command with {{w|Superuser|root}} privileges.
+
|<code>'''emacs'''</code>
* <code>sudo apt-get dist-upgrade</code> Returns "You are already running [OS].".
+
|<code>You should use Vim.". References [[378: Real Programmers]].
* <code>sudo apt-get moo</code> replies "Have you mooed today?" (apt-get Easter egg).
+
|-
* <code>sudo apt-get update</code> Refreshes the package list so the system knows which updates are available.
+
|<code>'''enable time travel'''</code>
* <code>sudo apt-get upgrade</code> shows a link to [http://abetterbrowser.org/ A Better Browser] on Internet Explorer and Firefox (< v3). On all other browsers, it doesn't complain.
+
|<code>TARDIS error: Time Lord missing</code>
* <code>sudo make me a sandwich</code> behave like [[149: Sandwich]].
+
|A {{w|Doctor Who}} reference. See also the <code>'''next'''</code> command.
* <code>sudo !!</code> will sudo the last command.
+
|-
* <code>sudo poweroff</code> will shutdown the system.
+
|<code>'''exit'''</code> ''or'' <code>'''quit'''</code> ''or'' <code>'''logout'''</code>
* <code>sudo reboot</code> will restart the system.
+
|(''ends the terminal session'')
* <code>sudo restart</code> same as <code>sudo reboot</code>.
+
|
* <code>sudo shutdown</code> same as <code>sudo poweroff</code>.
+
|-
* <code>sudo sudo</code> will print <span style=" colour: red;">An internal error occurred: RangeError: Maximum call stack size exceeded</span> in red text.
+
|<code>'''find kitten'''</code>
* <code>time travel</code> displays [[630: Time Travel]].
+
|(''showed the {{w|robotfindskitten}} game'')
* <code>top</code> replies "It's up there --^". The {{w|Top_(software)|top}} command shows a table of processes. Here it is taken literally.
+
|The link to the Flash version no longer works, but an HTML version is available [http://robotfindskitten.org/play/robotfindskitten/ here].
* <code>uname</code> replies "Illudium Q-36 Explosive Space Modulator". <code>uname</code> on Unix lists system information. The Illudium Q-36 Explosive Space Modulator is an explosive device created by Marvin the Martian in the {{w|Looney Tunes}} series.
+
|-
* <code>unixkcd</code> opens a new terminal window.
+
|<code>'''find'''</code>
* <code>use the force luke</code> replies "I believe you mean source.", a reference to the {{w|The_Force_(Star_Wars)|Force}} in the {{w|Star Wars}} franchise.
+
|<code>What do you want to find? Kitten would be nice.</code>
* <code>use the source luke</code> replies "I'm not luke, you're luke!", an old programmers' joke.
+
|
* <code>vi</code> reply "You should use emacs.". References [[378: Real Programmers]].
+
|-
* <code>vim</code> same as <code>vi</code>.
+
|<code>'''finger'''</code>
* <code>wget [url]</code> shows the content of the specified url. The {{w|wget}} command on Unix will download the content and not show it.
+
|<code>Mmmmmm...</code>
* <code>who</code> replies "Doctor Who?". Another {{w|Doctor Who}} reference. The <code>who</code> command on Unix lists the logged-in users.
+
|<code>'''finger USER'''</code> is used on UNIX-like systems to get information about another USER. Here, Randall is taking advantage of its suggestive name.
* <code> Whoami </code> replies "You are Richard Stallman.". The {{w|whoami}} command lists the name of the current user. Richard Stallman is the creator of the GNU project and the Free Software Foundation.
+
|-
* <code>write [nick]</code> same as <code>irc</code>.
+
|<code>'''fuck'''</code>
* <code>xkcd</code> replies "Yes?".
+
|<code>I have a headache.</code>
* <code>xyzzy</code> replies "Nothing happens.". {{w|Xyzzy_(computing)|xyzzy}} is a magic word, originally used in the game {{w|Colossal Cave Adventure}}.
+
|
* <code>your gay</code> replies "Keep your hands off it!".
+
|-
* <code>!!</code> reruns the previous command after stating the command.
+
|<code>'''goto [any]'''</code>
 +
|(''shows comic [[292: goto]] and asks if you meant <code>'''display'''</code> instead.'')
 +
|
 +
|-
 +
|<code>'''go back'''</code>
 +
|<code>You cannot go back.</code>
 +
|
 +
|-
 +
|<code>'''go down'''</code>
 +
|<code>On our first date?</code>
 +
|
 +
|-
 +
|<code>''' Hello Joshua '''</code>
 +
|<code>How about a nice game of Global Thermonuclear War?</code>
 +
|A reference to the {{w|WarGames}} movie.
 +
|-
 +
|<code>'''hello'''</code>
 +
|<code>Hello.</code>
 +
|A second reply <code>Why hello there!</code> is coded, but it is never used.
 +
|-
 +
|<code>'''help'''</code> ''or'' <code>'''halp'''</code>
 +
|<code>That would be cheating!</code>
 +
|
 +
|-
 +
|<code>'''hi'''</code>
 +
|<code>Hi.</code>
 +
|
 +
|-
 +
|<code>'''hint'''</code>
 +
|
 +
|Randomly replies "We offer some nice polos.", "This terminal will remain available at xkcd.com/unixkcd/", "Use the source, Luke!" or "There are cheat codes.".
 +
|-
 +
|<code>'''i read the source code'''</code>
 +
|<code><3</code>
 +
|
 +
|-
 +
|<code>'''irc [nick]'''</code> ''or'' <code>'''write [nick]'''</code>
 +
|(''starts an {{w|IRC}} session on the xkcd channel on irc.foonetic.net'')
 +
|
 +
|-
 +
|<code>'''kill'''</code>
 +
|<code>Terminator deployed to 1984.</code>
 +
|A reference to the {{w|The_Terminator|Terminator}} movie. In Bash, <code>'''kill'''</code> is used to end a process.
 +
|-
 +
|<code>'''latest'''</code>
 +
|(''displays the latest comic'')
 +
|
 +
|-
 +
|<code>'''locate [filename]'''</code>
 +
|
 +
|is normally used to locate a file in a directory. It will give humorous results when searching for <code>'''ninja'''</code>, <code>'''keys'''</code>, <code>'''joke'''</code>, <code>'''problem'''</code> and <code>'''raptor'''</code>.
 +
|-
 +
|<code>'''lpr'''</code>
 +
|<code>PC LOAD LETTER</code>
 +
|{{w|Line Printer Daemon protocol|<code>'''lpr'''</code>}} is a command to print documents. {{w|PC_LOAD_LETTER}} is a printer error.
 +
|-
 +
|<code>'''make love'''</code>
 +
|<code>I put on my robe and wizard hat.</code>
 +
|A reference to this [http://www.albinoblacksheep.com/text/bloodninja roleplay chat transcript] (NSFW), which was also mentioned in [[442: xkcd Loves the Discovery Channel]]. <code>'''make love'''</code> is a standard Unix joke, because the reply is <code>make: don't know how to make love</code>.
 +
|-
 +
|<code>'''make me a sandwich'''</code>
 +
|<code>What? Make it yourself.</code>
 +
|A reference to [[149: Sandwich]].
 +
|-
 +
|<code>'''man [command]'''</code>
 +
|(''shows unhelpful information about the command'')
 +
|Only <code>'''last'''</code>, <code>'''help'''</code>, <code>'''next'''</code>, <code>'''cat'''</code>, or no command are supported.
 +
|-
 +
|<code>'''moo'''</code>
 +
|<code>moo</code>
 +
|
 +
|-
 +
|<code>'''more'''</code>
 +
|<code>Oh, yes! More! More!</code>
 +
|The {{w|More (command)|more}} command is used to paginate output.
 +
|-
 +
|<code>'''nano'''</code>
 +
|<code>Seriously? Why don't you just use Notepad.exe? Or MS Paint?</code>
 +
|{{w|GNU nano|Nano}} is another text editor for Unix systems (see <code>'''vi'''</code> and <code>'''emacs'''</code>).
 +
|-
 +
|<code>'''ping'''</code>
 +
|<code>There is another submarine three miles ahead, bearing 225, forty fathoms down.</code>
 +
|The {{w|Ping (networking utility)|ping}} command is used to measure round trip times to a destination. The name does indeed originate from {{w|sonar}} technology.
 +
|-
 +
|<code>'''pwd'''</code>
 +
|<code>You are in a maze of twisty passages, all alike.</code>
 +
|The {{w|pwd}} command prints the current working directory (see <code>'''look'''</code>). The output is a reference to {{w|Colossal Cave Adventure}}.
 +
|-
 +
|<code>''' reddit [number]'''</code>
 +
|(''shows the [https://www.reddit.com/ Reddit] voting bar for the specified comic'')
 +
|If no number is specified, shows xkcd.
 +
|-
 +
|<code>'''rm [filename]'''</code> will "remove" a file, while <code>'''rm -r'''</code> will remove a directory. (<code>'''sudo rm -rf /'''</code> will break all commands until the page is reloaded.)
 +
|-
 +
|<code>'''serenity'''</code>
 +
|<code>You can't take the sky from me.</code>
 +
|This is a line from the Balad of Serenity from the {{w|Firefly_(TV_series)|Firefly}} TV series. Serenity is also the name of an Operating System (that Randall probably wasn't thinking of): [https://www.serenityos.org/ SerenityOS].
 +
|-
 +
|<code>'''shutdown'''</code> ''or'' <code>'''poweroff'''</code>
 +
|<code>Must be root.</code>
 +
|See also <code>'''sudo poweroff'''</code>.
 +
|-
 +
|<code>'''ssh'''</code>
 +
|<code>ssh, this is a library.</code>
 +
|{{w|Secure Shell|ssh}} is the command to start a secure shell, but it also resembles the "{{w|Shh}}" sound.
 +
|-
 +
|<code>'''su'''</code>
 +
|<code>God mode activated. Remember, {{w|With great power comes great responsibility|with great power comes great}} ... aw, screw it, go have fun.</code>
 +
|The {{w|Su (Unix)|su}} command is used to log in as an upper user, which gives you full and potentially dangerous access to the system. On some systems, "with great power comes great responsibility" is also part of a message that is printed the first time <code>'''sudo'''</code> is used.
 +
|-
 +
|<code>'''sudo [command]'''</code> (''executes the command with {{w|Superuser|root}} privileges'')
 +
|
 +
|-
 +
|<code>'''sudo apt-get dist-upgrade'''</code>
 +
|<code>You are already running [OS].</code>
 +
|-
 +
|<code>'''sudo apt-get moo'''</code>
 +
|<code>Have you mooed today?</code>
 +
|(apt-get Easter egg).
 +
|-
 +
|<code>'''sudo apt-get update'''</code>
 +
|<code>Reading package lists... Done</code>
 +
|Refreshes the package list so the system knows which updates are available.
 +
|-
 +
|<code>'''sudo apt-get upgrade'''</code>
 +
|(''shows a link to [http://abetterbrowser.org/ A Better Browser] on Internet Explorer and Firefox (< v3). On all other browsers, it doesn't complain.
 +
|-
 +
|<code>'''sudo make me a sandwich'''</code>
 +
|
 +
|behaves like [[149: Sandwich]].
 +
|-
 +
|<code>'''sudo !!'''</code>
 +
|(''will sudo the last command'')
 +
|-
 +
|<code>'''sudo poweroff'''</code> ''or'' <code>'''sudo shutdown'''</code>
 +
|(''shuts down the system'')
 +
|-
 +
|<code>'''sudo reboot'''</code> ''or'' <code>'''sudo restart'''</code>
 +
|(''restarts the system'')
 +
|-
 +
|<code>'''sudo sudo'''</code>
 +
|<code><span style=" colour: red;">An internal error occurred: RangeError: Maximum call stack size exceeded</span></code>
 +
|in red text.
 +
|-
 +
|<code>'''time travel'''</code>
 +
|(''shows [[630: Time Travel]]'')
 +
|-
 +
|<code>'''top'''</code>
 +
|<code>It's up there --^</code>
 +
|The {{w|Top_(software)|<code>'''top'''</code>}} command shows a table of processes. Here it is taken literally.
 +
|-
 +
|<code>'''uname'''</code>
 +
|<code>Illudium Q-36 Explosive Space Modulator</code>
 +
|<code>'''uname'''</code> on Unix lists system information. The Illudium Q-36 Explosive Space Modulator is an explosive device created by Marvin the Martian in the {{w|Looney Tunes}} series.
 +
|-
 +
|<code>'''unixkcd'''</code>
 +
|(''opens a new terminal window'')
 +
|-
 +
|<code>'''use the force luke'''</code>
 +
|<code>I believe you mean source.</code>
 +
|A reference to the {{w|The Force (Star Wars)|Force}} in the {{w|Star Wars}} franchise.
 +
|-
 +
|<code>'''use the source luke'''</code>
 +
|<code>I'm not luke, you're luke!</code>
 +
|An old programmers' joke.
 +
|-
 +
|<code>'''vi'''</code> ''or'' <code>'''vim'''</code>
 +
|<code>You should use emacs.</code>
 +
|A reference to [[378: Real Programmers]].
 +
|-
 +
|<code>'''wget [url]'''</code>
 +
|(''shows the content of the specified URL'')
 +
|The {{w|wget}} command on Unix will download the content and not show it.
 +
|-
 +
|<code>'''who'''</code>
 +
|<code>Doctor Who?</code>
 +
|Another {{w|Doctor Who}} reference. The <code>'''who'''</code> command on Unix lists the logged-in users.
 +
|-
 +
|<code>''' Whoami '''</code>
 +
|<code>You are Richard Stallman.</code>
 +
|The {{w|whoami}} command lists the name of the current user. [[Richard Stallman]] is the creator of the GNU project and the Free Software Foundation.
 +
|-
 +
 
 +
|<code>'''xkcd'''</code>
 +
|<code>Yes?</code>
 +
|
 +
|-
 +
|<code>'''xyzzy'''</code>
 +
|<code>Nothing happens.</code>
 +
|{{w|Xyzzy_(computing)|xyzzy}} is a magic word, originally used in the game {{w|Colossal Cave Adventure}}.
 +
|-
 +
|<code>'''your gay'''</code>
 +
|<code>Keep your hands off it!</code>
 +
|
 +
|-
 +
|<code>'''!!'''</code>
 +
|(''reruns the previous command after stating the command'')
 +
|
 +
|}
  
 
====Game commands====
 
====Game commands====
[[File:Konami code.png|300px|thumb|The image used as the background after using the Konami code five times.]]
+
There are also some other commands borrowed from a {{w|Zork}} like {{w|Text-based game|text-based adventure game}}.
* There are also some other commands borrowed from a {{w|Zork}} like {{w|Text-based game|text-based adventure game}}.
+
{| class="sortable wikitable"
* <code>look</code> describes your current surroundings.
+
! Command
* <code>go [direction]</code> moves you in the specified direction.
+
! Response
* <code>light lamp</code> lights your lamp.
+
! Explanation
* <code>sleep [seconds]</code> sleeps for the specified time. Without specifying, the nap is 5 seconds.
+
|-
* You will be killed by a {{w|Grue (monster)|grue}} if you don't light your lamp when going south. Going West repeatedly will list the refrain from the song {{w|Go West (song)|Go West}}.
+
|<code>'''look'''</code>
 +
|(''describes your current surroundings'')
 +
|
 +
|-
 +
|<code>'''go [direction]'''</code>
 +
|(''moves you in the specified direction'')
 +
|-
 +
|<code>'''light lamp'''</code>
 +
|(''lights your lamp'')
 +
|
 +
|-
 +
|<code>'''sleep [seconds]'''</code>
 +
|(''sleeps for the specified time'')
 +
|Without specifying, the nap is 5 seconds. You will be killed by a {{w|Grue (monster)|grue}} if you don't light your lamp when going south. Going West repeatedly will list the refrain from the song {{w|Go West (song)|Go West}}.
 +
|}
  
 
====Konami code====
 
====Konami code====
The terminal also responds to the {{w|Konami code}} Up, Up, Down, Down, Left, Right, Left, Right, B, A. Entering this code repeatedly will, in order:
+
[[File:Konami code.png|300px|thumb|The image used as the background after using the Konami code five times.]]The terminal also responds to the {{w|Konami code}} Up, Up, Down, Down, Left, Right, Left, Right, B, A. Entering this code repeatedly will, in order:
 
# Transform all characters to uppercase
 
# Transform all characters to uppercase
 
# Add a greatest shadow
 
# Add a greatest shadow

Revision as of 15:09, 1 March 2025

unixkcd
Konami code.png
Title text: none

Explanation

Ambox warning blue construction.svg This is one of 53 incomplete explanations:
  • Need to add this comic to more categories.
  • Describe the website interface a bit, such as the links at the bottom.
  • Also, explain the jokes in the #Undocumented commands section and the sections below it. If you can fix this issue, edit the page!
This is another one of Randall's April fools' comics. On April 1, 2010, Randall altered the xkcd.com website to mimic a Unix command-line interface. This interface is still available on uni.xkcd.com and the source code is available on GitHub. The comic 721: Flatland, released on March 31, 2010, was still up on April 1, 2010, but was unrelated to the Unix interface. The terminal only lists a few available commands, but most commands are undocumented.

Documented commands

Command Response Explanation
next (shows the next comic) It shows the error "Time travel mode not enabled" on the last comic (see enable time travel below).
prev (shows the previous comic)
first (shows the first comic)
last (shows the last comic)
display [number] (shows the comic with the specified number) Trying to display comic 404: Not Found will result in an endless loading attempt.
random (shows a random comic)
ls or dir (shows the content of the current directory)
cat [filename] (shows the content of the file) If [filename] is left blank, shows "You're a kitty!" instead.
cd [directory] (changes to the specified directory)

Undocumented commands

Command Response Explanation
:(){:|:&};: [...] (repeats indefinitely) This command, otherwise known as a shell fork bomb will make the terminal display the [...] loading dots indefinitely, as though it crashed.
a/s/l or asl A/S/L is not a Unix command, but an acronym of Age/Sex/Location. The following replies are possible:
    • "2/AMD64/Server Rack", answered as if the server replied.
    • "328/M/Transylvania", answered by Dracula.
    • "6/M/Battle School", answered by Ender Wiggin or another boy from battle school.
    • "48/M/The White House", answered by Barack Obama or another male of the same age in the White House.
    • "7/F/Rapture", answered by a Little Sister from BioShock.
    • "Exactly your age/A gender you're attracted to/Far far away.", Requests for a/s/l are often not answered truthfully, but crafted to suit the one asking the question.
    • "7,831/F/Lothlórien", answered by Galadriel or another elf.
    • "42/M/FBI Field Office", answered by an FBI agent (referencing the old trope that all girls on the internet are FBI agents impersonating them).
apt-get This APT has Super Cow Powers. The apt-get command is part of the Debian package manager APT. This reply is one of the built-in Easter eggs.
apt-get moo
        (__)
        (oo)
  /------\/ 
 / |    ||  
*  /\---/\  
   ~~   ~~  

...."Have you mooed today?"...
Displays an ASCII drawing of a cow.
bash You bash your head against the wall. It's not very effective. Bash is a shell for POSIX-based systems.
cat [number]/alt.txt (displays the title text of the specified comic)
cat (without a filename, or an invalid one) You're a kitty! A reference to 231: Cat Proximity.
cheat or buy stuff (opens the xkcd Store)
clear (clears the screen)
curl (creates an iframe to the URL specified)
date March 32nd Instead of April 1st, which is not a real date.[citation needed]
<code>display title text display: unable to open image "title": No such file or directory. in red text.
echo Echo ... echo ... echo ...". The echo command is used to print text to the terminal.
<code>ed You are not a diety ed is a very simple text editor. It is usually not considered very user-friendly. See also vi and emacs.
emacs You should use Vim.". References 378: Real Programmers.
<code>enable time travel TARDIS error: Time Lord missing A Doctor Who reference. See also the next command.
exit or quit or logout (ends the terminal session)
find kitten (showed the robotfindskitten game) The link to the Flash version no longer works, but an HTML version is available here.
find What do you want to find? Kitten would be nice.
finger Mmmmmm... finger USER is used on UNIX-like systems to get information about another USER. Here, Randall is taking advantage of its suggestive name.
fuck I have a headache.
goto [any] (shows comic 292: goto and asks if you meant display instead.)
go back You cannot go back.
go down On our first date?
Hello Joshua How about a nice game of Global Thermonuclear War? A reference to the WarGames movie.
hello Hello. A second reply Why hello there! is coded, but it is never used.
help or halp That would be cheating!
hi Hi.
hint Randomly replies "We offer some nice polos.", "This terminal will remain available at xkcd.com/unixkcd/", "Use the source, Luke!" or "There are cheat codes.".
i read the source code <3
irc [nick] or write [nick] (starts an IRC session on the xkcd channel on irc.foonetic.net)
kill Terminator deployed to 1984. A reference to the Terminator movie. In Bash, kill is used to end a process.
latest (displays the latest comic)
locate [filename] is normally used to locate a file in a directory. It will give humorous results when searching for ninja, keys, joke, problem and raptor.
lpr PC LOAD LETTER lpr is a command to print documents. PC_LOAD_LETTER is a printer error.
make love I put on my robe and wizard hat. A reference to this roleplay chat transcript (NSFW), which was also mentioned in 442: xkcd Loves the Discovery Channel. make love is a standard Unix joke, because the reply is make: don't know how to make love.
make me a sandwich What? Make it yourself. A reference to 149: Sandwich.
man [command] (shows unhelpful information about the command) Only last, help, next, cat, or no command are supported.
moo moo
more Oh, yes! More! More! The more command is used to paginate output.
nano Seriously? Why don't you just use Notepad.exe? Or MS Paint? Nano is another text editor for Unix systems (see vi and emacs).
ping There is another submarine three miles ahead, bearing 225, forty fathoms down. The ping command is used to measure round trip times to a destination. The name does indeed originate from sonar technology.
pwd You are in a maze of twisty passages, all alike. The pwd command prints the current working directory (see look). The output is a reference to Colossal Cave Adventure.
reddit [number] (shows the Reddit voting bar for the specified comic) If no number is specified, shows xkcd.
rm [filename] will "remove" a file, while rm -r will remove a directory. (sudo rm -rf / will break all commands until the page is reloaded.)
serenity You can't take the sky from me. This is a line from the Balad of Serenity from the Firefly TV series. Serenity is also the name of an Operating System (that Randall probably wasn't thinking of): SerenityOS.
shutdown or poweroff Must be root. See also sudo poweroff.
ssh ssh, this is a library. ssh is the command to start a secure shell, but it also resembles the "Shh" sound.
su God mode activated. Remember, with great power comes great ... aw, screw it, go have fun. The su command is used to log in as an upper user, which gives you full and potentially dangerous access to the system. On some systems, "with great power comes great responsibility" is also part of a message that is printed the first time sudo is used.
sudo [command] (executes the command with root privileges)
sudo apt-get dist-upgrade You are already running [OS].
sudo apt-get moo Have you mooed today? (apt-get Easter egg).
sudo apt-get update Reading package lists... Done Refreshes the package list so the system knows which updates are available.
sudo apt-get upgrade (shows a link to A Better Browser on Internet Explorer and Firefox (< v3). On all other browsers, it doesn't complain.
sudo make me a sandwich behaves like 149: Sandwich.
sudo !! (will sudo the last command)
sudo poweroff or sudo shutdown (shuts down the system)
sudo reboot or sudo restart (restarts the system)
sudo sudo An internal error occurred: RangeError: Maximum call stack size exceeded in red text.
time travel (shows 630: Time Travel)
top It's up there --^ The top command shows a table of processes. Here it is taken literally.
uname Illudium Q-36 Explosive Space Modulator uname on Unix lists system information. The Illudium Q-36 Explosive Space Modulator is an explosive device created by Marvin the Martian in the Looney Tunes series.
unixkcd (opens a new terminal window)
use the force luke I believe you mean source. A reference to the Force in the Star Wars franchise.
use the source luke I'm not luke, you're luke! An old programmers' joke.
vi or vim You should use emacs. A reference to 378: Real Programmers.
wget [url] (shows the content of the specified URL) The wget command on Unix will download the content and not show it.
who Doctor Who? Another Doctor Who reference. The who command on Unix lists the logged-in users.
Whoami You are Richard Stallman. The whoami command lists the name of the current user. Richard Stallman is the creator of the GNU project and the Free Software Foundation.
xkcd Yes?
xyzzy Nothing happens. xyzzy is a magic word, originally used in the game Colossal Cave Adventure.
your gay Keep your hands off it!
!! (reruns the previous command after stating the command)

Game commands

There are also some other commands borrowed from a Zork like text-based adventure game.

Command Response Explanation
look (describes your current surroundings)
go [direction] (moves you in the specified direction)
light lamp (lights your lamp)
sleep [seconds] (sleeps for the specified time) Without specifying, the nap is 5 seconds. You will be killed by a grue if you don't light your lamp when going south. Going West repeatedly will list the refrain from the song Go West.

Konami code

The image used as the background after using the Konami code five times.
The terminal also responds to the Konami code Up, Up, Down, Down, Left, Right, Left, Right, B, A. Entering this code repeatedly will, in order:
  1. Transform all characters to uppercase
  2. Add a greatest shadow
  3. Add an orange text-shadow
  4. Shake the screen
  5. Add a background image of Richard Stallman from 345: 1337: Part 5.

comment.png  Add comment      new topic.png  Create topic (use sparingly)     refresh discuss.png  Refresh 

Discussion

Red link...The 𝗦𝗾𝗿𝘁-𝟭 talk stalk 10:45, 11 October 2020 (UTC)

has skmone made an actual CLI based on these commands? 172.69.214.224 02:12, 22 November 2023 (UTC)

The Konami Code isn't working for me, does anyone else have this problem? Psychoticpotato (talk) 18:50, 10 May 2024 (UTC)

Should we consider this a comic? I don't know how to think about it. Blue Eyes wasn't a comic but we still consider it as one. --FaviFake (talk) 09:31, 22 February 2025 (UTC)

The moo still works after sudo rm -rf / (--no-preserve-root) 172.68.22.41 (talk) 05:07, 16 April 2025 (please sign your comments with ~~~~)

Entering the Konami code ~10^36^100^69 times makes the sun turn into a black hole. It might be unrelated to me doing it, but who's going to prove me wrong? GruefromZork (talk) 13:19, 2 May 2025 (UTC)

It looks like someone was writing the a/s/l for Galadriel and got cut off? I don't know enough about LOTR to try and fix that, but someone should. R128 (talk) 01:05, 4 November 2025 (UTC)

Fixed the broken wikilink (typo?) and fixed up/continued the abbreviated bit that came after, as I saw fit.
Did not note, in that, that the age given is what Galadriel would have given around 500 years before the events of the Hobbit/LOTR stories (if I've got that right, myself). But with the lack of other obvious 'F' elves, I'm happier to just assume it's her reply from elsewhen rather than a 'current' message from any unnamed/barely-mentioned fellow elfin born half a millenium after her. (Arwen was only a couple of millenia old, and came from Rivendell as well. And I'd honestly be hard pressed to recall any other female LOTR elf that featured in the prose, and not just a box in the geneology diagrams from the appendices. The real Tolkien scholars/book-memorisers could have other ideas, of course. Or identify which 'prequel' tales might have inspired this instance.) 82.132.245.109 04:40, 4 November 2025 (UTC)
      comment.png  Add comment