Slashdot Mirror


XKCD Deploys Command Line Interface

ipquickly was one of a large number of users to note that the best on-line comic has just got a little better with the addition of a command line interface. You can also sign the petition to make the CLI permanent.

27 of 288 comments (clear)

  1. uname by Anonymous+Showered · · Score: 5, Informative

    guest@xkcd:/$ uname
    Illudium Q-36 Explosive Space Modulator

    and

    guest@xkcd:/$ su
    God mode activated. Remember, with great power comes great ... aw, screw it, go have fun.

    I lol'ed.

    1. Re:uname by GNUALMAFUERTE · · Score: 2, Informative

      try wget http://google.com/

      it creates and iframe and loads the URL in there.

      --
      WTF am I doing replying to an AC at 5 A.M on a Friday night?
  2. Re:No tab completion! by QRDeNameland · · Score: 3, Informative

    What is a shell without tab complete?!? Even Windows supports it.

    However, I was impressed that it implemented up-down arrow command history, and even "ls".

    I tried "rm -rf /" but permission was denied. :-)

    --
    Momentarily, the need for the construction of new light will no longer exist.
  3. try these commands.... by Anonymous Coward · · Score: 1, Informative

    make me a sandwich
    sudo make me a sandwich

  4. WGET! by Anonymous+Showered · · Score: 2, Informative

    # wget http://www.xkcd.com/

    You're going to love it.

  5. Re:Hasn't everyone written a bogus shell at some t by mjschultz · · Score: 2, Informative

    I spent way too much time after I tried the most natural command line program `look`. Yeah, there is a tiny game in there too. Also, you still don't want to `sudo rm -rf /` cause then you'll have to restart the page.

  6. Re:Hasn't everyone written a bogus shell at some t by mikael_j · · Score: 4, Informative

    "sudo su -" doesn't work but "sudo make me a sandwich" does.

    --
    Greylisting is to SMTP as NAT is to IPv4
  7. Other fun things to do by Virak · · Score: 5, Informative
    • Typing cat with an argument, naturally dumps that file to stdout. Typing cat without an argument does something entirely different.
    • On a semi-related note, typing "find kitten" lets you find kitten.
    • rm -rf / doesn't work because, like on any good *nix system, you're not normally running as root.
    • But you can use sudo with this (and several other things) to do it anyway.
    • apt-get upgrade (don't forget the sudo) will gladly suggest an upgrade to you if you're using Internet Explorer.
    • Both vim and emacs are available, in a manner.
    • man doesn't provide help for most commands, but it does provide some amusing responses for some of them.
    • Try typing "look".
    • Various commands don't really do anything, but provide amusing responses. Try ping, ssh, ed, kill, or asl.
    • There's a command for people who read the source code (along with, you know, the names of all the other commands), but you should find that on your own.
    • And many, many more!
    1. Re:Other fun things to do by TubeSteak · · Score: 5, Informative

      Everything is containted in this javascript:
      http://www.xkcd.com/unixkcd/xkcd_cli_all.js

      You can root around to figure out some of the more obscure commands.

      --
      [Fuck Beta]
      o0t!
    2. Re:Other fun things to do by creepynut · · Score: 3, Informative

      If you get it from here it's a little more readable: http://github.com/chromakode/xkcdfools/blob/master/xkcd_cli.js

      (found via the "source code" link at the bottom of xkcd.com)

    3. Re:Other fun things to do by MagicM · · Score: 2, Informative

      The Konami code is anything but obscure my good man...

      And it is also awsome.

  8. I read the source code. by Joeseph64 · · Score: 2, Informative

    And by reading the source code, I found out that "I read the source code" yields a text heart.

    Also, I cheated and read all the other commands you can use. (They're near the bottom of that file.)

  9. undocumented commands I've seen: by pushing-robot · · Score: 4, Informative

    (most taken from the xkcd forum thread)

    of course, (sudo) make me a sandwich
    uname
    su
    sudo shutdown
    sudo reboot
    logout
    pwd
    lpr
    clear
    rm -rf /
    find kitten
    buy stuff
    echo
    finger
    goto
    date
    irc/wget/curl
    wget/curl xkcd.com
    ping
    vi/vim/emacs/nano
    apt-get (moo)
    sudo apt-get (update/upgrade/dist-upgrade)
    moo
    hello (joshua)
    man (help) (cat) (last) (next)
    go (west) (east) (south) (north)
    look
    light (lamp)
    xyzzy
    whoami
    i read the source code
    asl
    cheat
    buy stuff

    --
    How can I believe you when you tell me what I don't want to hear?
    1. Re:undocumented commands I've seen: by Anonymous Coward · · Score: 1, Informative

      There's also "go down".

  10. Re:Hasn't everyone written a bogus shell at some t by Anonymous Coward · · Score: 1, Informative

    One of the most elaborate ones I found is: http://www.masswerk.at/jsuix/

  11. Already permanent. by Anonymous Coward · · Score: 5, Informative

    guest@xkcd:/$ hint

    This terminal will remain available at http://xkcd.com/unixkcd/

    The petition people need to use the source, luke.

    (hint is a random reply command, try it several times for that comment)

  12. Re:No tab completion! by robot256 · · Score: 3, Informative

    Randall certainly didn't make it easy to parse, though. There's no line breaks and all there a dozen different constructions for the commands.

  13. it is now April 2nd @ 12:01 AM EDT by waterwingz · · Score: 2, Informative

    fun all done

    --
    . waterwingz
  14. Re:No tab completion! by bmecoli · · Score: 1, Informative

    Which is why you run it through this.

  15. Re:Hasn't everyone written a bogus shell at some t by Anonymous Coward · · Score: 1, Informative
  16. Re:retro by Sir_Lewk · · Score: 2, Informative

    You do realize that HTML is just a Markup Language right?

    --
    "linux is just DOS with a UNIX like syntax" -- Galactic Dominator (944134)
  17. Re:Hasn't everyone written a bogus shell at some t by nlewis · · Score: 2, Informative

    It's gone now.

    It's not completely gone - it's just been relocated here.

  18. Re:No tab completion! by schnablebg · · Score: 3, Informative

    The code is GPL'd and on Gitbub.

    http://github.com/chromakode/xkcdfools

  19. Cool interface... by BrokenHalo · · Score: 2, Informative

    Just for curiosity's sake, I tried

    whoami
    and got
    You are Richard Stallman.

    And "pwd" yields
    You are in a maze of twisty passages, all alike.

  20. The petition is unnecessary... by headLITE · · Score: 5, Informative

    ...it's still there if you use this link: http://xkcd.com/unixkcd/

    1. Re:The petition is unnecessary... by Anonymous Coward · · Score: 1, Informative

      It's not working though. Both FF and IE show JS errors.

    2. Re:The petition is unnecessary... by The+Aethereal · · Score: 3, Informative

      Not working for me either in FF or IE. Though I get no js errors. Just a prompt where I can't type anything.