A developer hand-codes every Linux file utility in C in 52 minutes, no AI

No AI, 52 min. Build all Linux Files utils in C by Hand [video]

A 52-minute video shows a programmer building all the standard Linux file utilities in C from scratch, with no AI assistance. Hacker News commenters quickly found a serious bug: the reimplemented touch opens files in "w" mode, so it truncates existing files to empty instead of just updating their timestamps. Others questioned the missing command-line argument handling and joked that the hand-written approach was "organic, hand woven" slop.

No it will *replace* or create the files "touched" by an empty file. Major bug in the first command.
  1. firesteelrain

    I only watched the first few minutes and thought no way touch is that simple! It isn’t. Because most of these utilities have a lot of scar tissue handling years of various edge cases and conditions. Something to be said for software engineering. If you try to build for all the edge conditions then getting a somewhat working example out would take too long

    I did appreciate the ways he used the man pages to build out the tools.

    Actual touch.c source: https://github.com/coreutils/coreutils/blob/master/src/touch...

  2. ReDress

    I just looked at the first example / utility he implemented; which was 'touch'

    Will this actually update the 'last modified' date for an already existing file?

    Also, there's a standard way of processing command line arguments on Linux/Unix, which is not being followed here.

  3. jcfrei

    I kind of expected this to happen: Coding will become an "artisanal craft" - much like woodworking for example. Sure for most of your furniture you can just go to ikea but every now and then you might get joy from making something with your own hands.

  4. assumed_throwaw

    I discovered his videos a few days ago. I imagine the "algorithm" pushed those into a lot of HN users' feeds.

    Just this morning, I was wondering if it would make sense to share it on HN. And here it it on the front page. What a small world.

  5. gozzoo

    We mostly saw the guy typing. The clicking sound is very distracting. Using vim didn't do him any favour. I would be much more impressed if we could get more insight into to the thinking and problem solving process. Also smoking is not commonly accepted productivity booster. He could have watched porn instead.

  6. athrowaway3z

    No splits timer. No frame perfect tricks. Uses "exploits" (touch truncates file). Terrible strats.

    Swapping to printf("Usage: %s ...\n",argv[0]); could easily save 60 key presses.

    Let us know when somebody creates a No-ABE category.

  7. bananaquant

    Finally a video where creator's face overlaid on top of the content actually contributes value.

  8. ligarota

    Just a guy using libc in fact...

More from this day

2026-11-01