TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Down the 'ls' Rabbit Hole

169 pointsby mgorsuchover 14 years ago

8 comments

jeffbarrover 14 years ago
These "down the hole" investigations can sometimes be used as the basis for open-ended interview questions.<p>I always ask candidates to tell me everything that happens between the time that they see an interesting link on the screen, click on it, and see the result. I've had great answers in the space of 2 minutes, and amazing ones that covered 15 or more. Some of the more spectacular answers referenced neurons, muscles, round-robin DNS, firewalls, load balancers, application servers, and more. I can really determine if they know how the web works or not.
评论 #2011898 未加载
jgershenover 14 years ago
Nice article; it reminds me of taking OS at CMU. There's something incredible about learning what happens all the way down when you call, say, printf. Suddenly the computer transforms from an incomprehensible black box into an fascinating marvel of engineering - but unlike a magician's act, the magic only gets better when you see how it works.
评论 #2011051 未加载
评论 #2012414 未加载
birkenover 14 years ago
It is worth noting this whole series is incredible. I used to work with the guy who started it (@jordansissel), and he was an incredible sysadmin/software engineer. If you go through the archives on the right side, you will find lots more incredible posts (although he doesn't write them all anymore, they are all of excellent quality).
评论 #2011825 未加载
评论 #2011958 未加载
ihodesover 14 years ago
Note, for those following along, that Mac users can use <i>dtruss</i> (which is a shell script that makes DTrace easier to use and more like strace).<p>What a neat article! Makes me want to explore some other commands and write something similar up.
scrameover 14 years ago
Wow. Really informative.<p>I have used strace to try to debug unpredictable or unresponsive programs, but it never occured to me to just run it against the commands I rely on that actually work.<p>I did a combination gasp/chuckle when I saw the 'write(l, "bar\n" ...' at the end of the ls dump. There is something both humbling and obvious about seeing under the hood of the platform that I just take for granted.
azar1over 14 years ago
Heh, this is great. I just had to write a simple shell for my CS class, so going into more depth with some of the stuff in this article is great.
T_S_over 14 years ago
Yes. I have this command aliased as 'fu'. Surprisingly easy to remember.
monosover 14 years ago
THE AMULET OF YENDOR: INSIDE THE KERNEL<p>JUST ONE MORE TURN...<p><a href="http://en.wikipedia.org/wiki/NetHack" rel="nofollow">http://en.wikipedia.org/wiki/NetHack</a>