<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Atulkrishna on Medium]]></title>
        <description><![CDATA[Stories by Atulkrishna on Medium]]></description>
        <link>https://medium.com/@atulkrishna463?source=rss-5c416b145461------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*mNCJwkkVHe9PULts</url>
            <title>Stories by Atulkrishna on Medium</title>
            <link>https://medium.com/@atulkrishna463?source=rss-5c416b145461------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 20:03:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@atulkrishna463/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Everything Is a File: A Field Guide to the Linux Filesystem Hierarchy]]></title>
            <link>https://grain.saltindex.com/everything-is-a-file-a-field-guide-to-the-linux-filesystem-hierarchy-e182b713c31b?source=rss-5c416b145461------2</link>
            <guid isPermaLink="false">https://medium.com/p/e182b713c31b</guid>
            <category><![CDATA[filesystem]]></category>
            <category><![CDATA[file-tree]]></category>
            <category><![CDATA[linux-file-system]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Atulkrishna]]></dc:creator>
            <pubDate>Tue, 13 Oct 2026 19:49:31 GMT</pubDate>
            <atom:updated>2026-10-13T19:49:31.848Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>A clean, no-nonsense architectural breakdown of how Unix-like systems organize processes, peripherals, and packages beneath a single root slash.</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0Sq873nePueo0lfO" /><figcaption>Photo by <a href="https://unsplash.com/@iammrcup?utm_source=medium&amp;utm_medium=referral">Mr Cup / Fabien Barral</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>If you come from Windows, storage architecture feels like an archipelago: islands of drives (C:, D:, E:) operating as separate kingdoms.</p><p>Linux takes the opposite design philosophy: <strong>a single, unified, hierarchical tree.</strong></p><p>No matter how many physical NVMe drives, USB sticks, network mounts, or virtual devices you plug in, everything attaches to a single origin point: the root directory (/).</p><p>Layered on top of that hierarchy is the foundational Unix ethos: <strong>everything is a file.</strong></p><p>A running program? A file in memory.</p><p>A serial port? A file.</p><p>A block storage partition? Also a file.</p><p>Here is an architectural walkthrough of the Linux filesystem, what each critical node does, and why the system is organized the way it is.</p><h3>The Tree at 10,000 Feet</h3><p>At the core of the system sits /. Every path in Linux is either absolute (starting from /) or relative to where your shell currently sits.</p><pre>/<br>├── bin    # Everyday toolbox — commands you need to get around (ls, cp, mv, rm)<br>├── boot   # Ignition switch — core kernel and startup files to boot the PC<br>├── dev    # Plug-in hub — hardware exposed as files (disks, USBs, terminal)<br>├── etc    # Settings panel — plain-text configs for apps, network, and system<br>├── home   # Personal bedrooms — folders where regular users keep their files<br>├── lib    # Engine parts — shared libraries programs need to run<br>├── media  # Welcome mat — auto-mount point for plugged-in pendrives and external disks<br>├── opt    # Guest room — standalone third-party apps that don&#39;t fit default packaging<br>├── root   # Admin&#39;s private office — home folder for the root user (kept separate for rescue)<br>├── tmp    # Scratchpad / trash can — temporary junk that usually wipes on reboot<br>├── usr    # Main software library — where your daily user apps, tools, and docs live<br>└── var    # Active logbook — data that constantly changes (system logs, cache, queues)</pre><h3>The Essential Directory Breakdown</h3><h3>1. System Boot &amp; Core Operations</h3><p><strong>/boot — Kernel &amp; Bootloader</strong></p><ul><li>Houses everything required to bring the machine to life before the operating system takes over user space: the GRUB bootloader configuration, vmlinuz (the compressed Linux kernel), and initial RAM disk (initramfs) images.</li></ul><p><strong>/bin &amp; </strong><strong>/sbin — Essential Executables</strong></p><ul><li>Contains essential single-user mode and system binaries. Core terminal commands like ls, cp, mv, cat, and rm reside here. <em>(Note: Many modern distributions symlink </em><em>/bin to </em><em>/usr/bin to consolidate user binaries.)</em></li></ul><p><strong>/lib — Shared System Libraries</strong></p><ul><li>Contains dynamic shared libraries (.so files) and kernel modules required by binaries in /bin and /sbin during bootup.</li></ul><h3>2. Device &amp; Configuration Abstractions</h3><p><strong>/dev — Device Nodes</strong></p><ul><li>Here, the <em>“everything is a file”</em> philosophy becomes tangible. Linux exposes physical and pseudo devices as character or block files:</li><li>Hard drives &amp; partitions: /dev/sda, /dev/nvme0n1p1</li><li>Serial &amp; terminal devices: /dev/tty, /dev/pts/*</li><li>Special bit-buckets &amp; generators: /dev/null, /dev/urandom, /dev/zero</li></ul><p><strong>/etc — System Configurations</strong></p><ul><li>Short for <em>editable text configuration</em> (or <em>et cetera</em> historically). Almost every global daemon, networking rule, user database, and service definition is configured via plain text files stored here (e.g., /etc/hosts, /etc/fstab, /etc/passwd).</li></ul><h3>3. Userland &amp; Third-Party Software</h3><p><strong>/home — Standard User Sanctuaries</strong></p><ul><li>Isolated home directories for individual system users (/home/ali, /home/ahmed). Normal users have full read/write privileges in their own home directory and restricted access elsewhere.</li></ul><p><strong>/root — The Administrator’s Home</strong></p><ul><li>The personal home directory for the root superuser. It is kept deliberately separate from /home so the system administrator can still log in and repair the machine even if /home resides on an unmounted or corrupted secondary partition.</li></ul><p><strong>/usr — User System Resources</strong></p><ul><li>Historically stands for <em>User System Resources</em> (not just “user”). It forms a secondary hierarchy containing the bulk of installed software, documentation, and shared libraries:</li><li>/usr/bin: Day-to-day user utilities and tools.</li><li>/usr/lib: Libraries for user applications.</li><li>/usr/share: Architecture-independent data (man pages, localization, icons).</li></ul><p><strong>/opt — Add-on Application Packages</strong></p><ul><li>Reserved for self-contained, monolithic third-party software suites that do not follow standard distribution package layouts (e.g., custom enterprise software, Google Chrome, proprietary toolchains).</li></ul><h3>4. Dynamic Data &amp; Temporary State</h3><p><strong>/tmp — Temporary Storage</strong></p><ul><li>A shared scratchpad open to all processes and users. Files here are ephemeral and typically wiped clean on reboot or cleared automatically by systemd timers.</li></ul><p><strong>/var — Variable State &amp; Telemetry</strong></p><ul><li>Contains data that constantly grows or mutates during runtime:</li><li>/var/log: System and application logs (syslog, journald, nginx/access.log).</li><li>/var/cache: Cached data generated by package managers and utilities.</li><li>/var/spool: Queued jobs waiting for execution (cron jobs, mail queues, print spools).</li></ul><p><strong>/media &amp; </strong><strong>/mnt — Mount Points</strong></p><ul><li>Locations where storage devices attach to the hierarchy. /media is typically managed dynamically by desktop environments for auto-mounted removable drives (USBs, optical discs), while /mnt is traditionally used for temporary manual mounts by administrators.</li></ul><h3>3. Core Characteristics You Must Know</h3><p><strong>Strict Case Sensitivity</strong></p><ul><li>Unlike Windows or macOS default filesystems, Linux is unapologetically case-sensitive. System.conf, system.conf, and SYSTEM.CONF are treated as three distinct files within the same directory.</li></ul><p><strong>Unified Namespace</strong></p><ul><li>Storage devices are not assigned autonomous drive letters. Mounting a drive simply “splices” its filesystem onto an existing folder branch within the single root tree.</li></ul><p><strong>Decoupled Configuration &amp; Runtime Data</strong></p><ul><li>By cleanly separating static configurations (/etc), system binaries (/usr), dynamic state (/var), and personal data (/home), Linux allows system administrators to place directories on separate physical partitions, mount read-only filesystems, and perform resilient system backups with precision.</li></ul><h3>Summary</h3><p>The Linux filesystem hierarchy isn’t arbitrary clutter — it is a battle-tested blueprint developed over decades of Unix systems engineering. Once you view the root directory (/) as a single tree trunk where hardware, software, and configuration branch outward, navigating and troubleshooting Linux becomes second nature.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e182b713c31b" width="1" height="1" alt=""><hr><p><a href="https://grain.saltindex.com/everything-is-a-file-a-field-guide-to-the-linux-filesystem-hierarchy-e182b713c31b">Everything Is a File: A Field Guide to the Linux Filesystem Hierarchy</a> was originally published in <a href="https://grain.saltindex.com/">Salt Index</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ever Wondered Why Your Brand-New 1TB Hard Drive Only Shows 930GB? ]]></title>
            <link>https://grain.saltindex.com/ever-wondered-why-your-brand-new-1tb-hard-drive-only-shows-930gb-42c5ae4ca048?source=rss-5c416b145461------2</link>
            <guid isPermaLink="false">https://medium.com/p/42c5ae4ca048</guid>
            <category><![CDATA[data-storage]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[storage]]></category>
            <category><![CDATA[hardware]]></category>
            <dc:creator><![CDATA[Atulkrishna]]></dc:creator>
            <pubDate>Thu, 01 Oct 2026 15:53:06 GMT</pubDate>
            <atom:updated>2026-10-06T15:51:06.985Z</atom:updated>
            <content:encoded><![CDATA[<p>I believe we all have been there, thinking the manufacturer or seller scammed us . We bought a shiny 1TB hard drive, plugged it in, and BAM — it says you have a max available capacity of <strong>930GB</strong> available (or <strong>931GB</strong> in some cases) 📉.</p><p>Where did that sweet 70GB go?! Did it just evaporate into thin air?! 💨</p><p>So, just to reassure you: <strong>you have not been scammed</strong> (in most cases, at least) 😅. It’s just that the math <em>you</em> were doing (LHS) is correct, but the math your computer (RHS) is doing is <em>also</em> correct.</p><p>Yet, in this cosmic glitch of computer science: <strong>LHS ≠ RHS</strong> 🤯.</p><p>Just so you know, the villain in this story is not math — it’s <strong>computational conventions</strong> 🎭.</p><h3>Two Languages, One Huge Misunderstanding 🗣️⚡</h3><p>We humans — and storage manufacturers (who are technically also human 😂) — operate in the <strong>SI Standard (International System of Units)</strong>.</p><p>To human brains, the metric system is clean and tidy: <strong>base 10.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*isUnZM6X2JPcsmx12a_5oQ.png" /><figcaption>SI unit convention</figcaption></figure><p>So when Seagate or Western Digital makes a 1TB drive, they literally pack <strong>1,000,000,000,000 bytes</strong> inside and call it a day. Simple, clean, base-10 math! 🏷️</p><p><strong>Enter your computer.</strong> (Now, don’t crawl inside it 🐍— figuratively speaking!)</p><p>Remember what your middle school computer teacher👩‍🏫 taught you?</p><p><strong><em>“1 KB is 1,024 Bytes. 1 MB is 1,024 KB.”</em></strong></p><p>See? <strong>That’s where the chaos begins!</strong> 🎒💥</p><p>Computers don’t have ten fingers. They don’t give a damn about clean powers of 10. They live strictly in binary — <strong>0s and 1s</strong> (2^n).</p><p>Because 2^10 = 1,024, which was suspiciously close to 1,000, early engineers got lazy🥱.</p><p>Instead of inventing new words, they hijacked metric terms. To humans👤, “kilo” meant 1,000. To computers🤖, “kilo” secretly meant 1,024.</p><h3>The Disappearing Act: Base 10 vs. Base 2 📊</h3><p>Here is the cheat sheet that explains the entire war between your brain and your machine:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*t-XK-E7ooXB-SRXbv4V8gw.png" /><figcaption>SI vs Binary Sytems</figcaption></figure><p>Notice that snowball effect? By the time you reach <strong>Terabytes</strong>, the difference isn’t tiny change — it’s roughly <strong>10% of your entire storage space!</strong></p><h3>Doing The “Scam” Math 🧮🔍</h3><p>When you plug that 1TB drive into Windows, the OS takes the <strong>1,000,000,000,000 bytes</strong> provided by the manufacturer and divides it through computer logic:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*47n7TFmPzxBCAYSZAlCDcw.png" /></figure><p><strong>Boom.</strong> Mystery solved 🕵️‍♂️.</p><p>Not a single byte fell out of your backpack on the way home. You simply lost 70GB in translation between human base-10 language and machine base-2 reality.</p><h3>The Peace Treaty: IEC Standards 📜🕊️</h3><p>By the late 1990s, buyers were furious and lawsuits were landing on manufacturers’ desks ⚖️. So in 1998, the <strong>IEC (International Electrotechnical Commission)</strong> intervened to end the confusion:</p><ul><li><strong>Metric units (KB, MB, GB, TB)</strong> belong strictly to <strong>SI decimal math</strong> (1,000).</li><li><strong>Binary units</strong> get new prefixes: <strong>Kibibyte (KiB), Mebibyte (MiB), Gibibyte (GiB), and Tebibyte (TiB)</strong> (1,024).</li></ul><p>Under IEC rules:</p><ul><li>Your drive really has <strong>1.0 TB</strong> (Terabyte).</li><li>Your system is actually reading <strong>931 GiB</strong> (Gibibytes).</li></ul><p>Both sides are 100% correct! 🎉</p><h3>So Why Does Windows Still Confuse Everyone? 🤦‍♂️</h3><p>If this was settled decades ago, why does your PC screen still say <strong>“931 GB”</strong> instead of <strong>“931 GiB”</strong>?</p><p>Because <strong>Windows never updated its labels.</strong> It calculates in binary (<strong>GiB</strong>), but slaps the decimal label (<strong>GB</strong>) right on your screen anyway!</p><p><em>Fun fact: Apple solved this back in 2009. If you plug a 1TB drive into a modern Mac, macOS reports using SI decimal units, so it proudly shows a clean </em><strong><em>1.0 TB</em></strong><em> 🍏.</em></p><p>The next time your storage looks short on space, skip the angry email to customer support 🛑. Your hard drive didn’t rob you — your operating system is just being a stubborn binary purist! 🤓✌️</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=42c5ae4ca048" width="1" height="1" alt=""><hr><p><a href="https://grain.saltindex.com/ever-wondered-why-your-brand-new-1tb-hard-drive-only-shows-930gb-42c5ae4ca048">Ever Wondered Why Your Brand-New 1TB Hard Drive Only Shows 930GB? 🤔💾</a> was originally published in <a href="https://grain.saltindex.com/">Salt Index</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>