XKCD Deploys Command Line Interface 288
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.
uname (Score:5, Informative)
guest@xkcd:/$ uname
Illudium Q-36 Explosive Space Modulator
and
guest@xkcd:/$ su ... aw, screw it, go have fun.
God mode activated. Remember, with great power comes great
I lol'ed.
Re:No tab completion! (Score:4, 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. :-)
try these commands.... (Score:1, Informative)
make me a sandwich
sudo make me a sandwich
WGET! (Score:2, Informative)
# wget http://www.xkcd.com/ [xkcd.com]
You're going to love it.
Re:Hasn't everyone written a bogus shell at some t (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.
Re:Hasn't everyone written a bogus shell at some t (Score:5, Informative)
"sudo su -" doesn't work but "sudo make me a sandwich" does.
Other fun things to do (Score:5, Informative)
I read the source code. (Score:2, Informative)
Also, I cheated and read all the other commands [github.com] you can use. (They're near the bottom of that file.)
undocumented commands I've seen: (Score:5, 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
Re:undocumented commands I've seen: (Score:1, Informative)
There's also "go down".
Re:Other fun things to do (Score:5, Informative)
Everything is containted in this javascript:
http://www.xkcd.com/unixkcd/xkcd_cli_all.js [xkcd.com]
You can root around to figure out some of the more obscure commands.
Re:Hasn't everyone written a bogus shell at some t (Score:1, Informative)
One of the most elaborate ones I found is: http://www.masswerk.at/jsuix/
Re:uname (Score:3, Informative)
try wget http://google.com/ [google.com]
it creates and iframe and loads the URL in there.
Re:Other fun things to do (Score:4, Informative)
If you get it from here it's a little more readable: http://github.com/chromakode/xkcdfools/blob/master/xkcd_cli.js [github.com]
(found via the "source code" link at the bottom of xkcd.com)
Already permanent. (Score:5, Informative)
guest@xkcd:/$ hint
This terminal will remain available at http://xkcd.com/unixkcd/ [xkcd.com]
The petition people need to use the source, luke.
(hint is a random reply command, try it several times for that comment)
Re:No tab completion! (Score:4, Informative)
Re:Other fun things to do (Score:3, Informative)
The Konami code is anything but obscure my good man...
And it is also awsome.
it is now April 2nd @ 12:01 AM EDT (Score:2, Informative)
fun all done
Re:No tab completion! (Score:1, Informative)
Re:Hasn't everyone written a bogus shell at some t (Score:1, Informative)
http://xkcd.com/149/ [xkcd.com]
Re:retro (Score:3, Informative)
You do realize that HTML is just a Markup Language right?
Re:Hasn't everyone written a bogus shell at some t (Score:2, Informative)
It's gone now.
It's not completely gone - it's just been relocated here [xkcd.com].
Re:No tab completion! (Score:4, Informative)
The code is GPL'd and on Gitbub.
http://github.com/chromakode/xkcdfools [github.com]
Cool interface... (Score:2, Informative)
whoami
and got
You are Richard Stallman.
And "pwd" yields
You are in a maze of twisty passages, all alike.
The petition is unnecessary... (Score:5, Informative)
...it's still there if you use this link: http://xkcd.com/unixkcd/ [xkcd.com]
Re:The petition is unnecessary... (Score:1, Informative)
It's not working though. Both FF and IE show JS errors.
Re:The petition is unnecessary... (Score:4, 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.