Elektrine lite

← Feed

@jschauma@mstdn.social

2026-10-02 17:45 UTC

Advanced Programming in the #UNIX Environment Week 4: Directories In this video, we take a look at how directories are created and removed, as well as how to move around the filesystem hierarchy. We also learn how directory permissions are applied, why the 'cd' command must be a shell builtin in order to work, what happens when you remove a directory you're currently in, and we revisit our simple ls(1) clone from week 1, using opendir(2) and readdir(2) to list files. https://youtu.be/xZ7dNXZ58G8

Replies (1)

  • @jschauma@mstdn.social 2026-10-03 13:52

    Advanced Programming in the #UNIX Environment Week 4: Directory Size Let's dive deep into the structure of the directory on a traditional Unix File System and see how its size is independent of the file sizes of its entries, but dependent on the filename lengths. We'll also use hexdump(1) to cheat a bit and look at the actual directory structure on disk. https://youtu.be/gY0SE-71LZA

    Open ##4943732