🗂 1. Drives and File Systems
Windows
- Windows assigns each drive or partition a letter, such as:
C:→ the main system driveD:→ a second hard drive or DVD driveE:→ a USB drive, etc.
- Each drive has its own separate root directory, e.g.:
C:\WindowsD:\Music
So in Windows, the letter defines a separate file tree.
Linux
- Linux does not use drive letters.
- Instead, it uses a single unified file hierarchy, starting from a single root directory:
/Everything—no matter which drive or partition it comes from—is placed somewhere inside this tree. - Other drives or partitions are mounted into this hierarchy at specific locations called mount points.
- Examples:
/ ← root filesystem (usually on the main drive)/home ← might be on another partition/mnt/usb ← a mounted USB stick/media/cdrom ← a mounted CD-ROM
So when you mount a new drive, you “attach” it somewhere in the directory tree, rather than giving it a letter.
🔠 2. File and Directory Names (Case Sensitivity)
Windows
- Case-insensitive (mostly):
Document.txt,document.txt, andDOCUMENT.TXTare considered the same file.
- Windows file systems (NTFS, FAT32) preserve case, but the OS generally doesn’t distinguish it.
Linux
- Case-sensitive:
Document.txt,document.txt, andDOCUMENT.TXTare different files.
- This applies everywhere, including filenames, directory names, and commands.
Example:
cd /Home # Error if the directory is actually /home
🧩 3. File Paths and Separators
| Concept | Windows | Linux |
|---|---|---|
| Path separator | Backslash \ | Forward slash / |
| Root directory | Drive letter + :\ (e.g. C:\) | Single / |
| Example path | C:\Users\Peter\Documents | /home/peter/documents |
Linux paths look simpler, and / is consistent across all systems (including macOS).
🔒 4. Permissions and Ownership
- Linux uses ownership and permissions (user/group/other + read/write/execute flags).
Example:-rw-r--r-- user group file.txt - Windows uses Access Control Lists (ACLs), which are more complex but conceptually similar.
⚙️ 5. Drives in Practice
To see drives in Linux:
lsblk
This shows block devices like:
sda
├─sda1
├─sda2
sdb
└─sdb1
These represent physical devices (/dev/sda, /dev/sdb) and their partitions (/dev/sda1, etc.).
You mount them to directories like /mnt or /media to access their contents.
🔍 Summary
| Feature | Windows | Linux |
|---|---|---|
| Drives | Identified by letters (C:, D:) | Mounted into / hierarchy |
| Root | C:\ (or other letter) | / |
| Case sensitivity | No | Yes |
| Path separator | \ | / |
| Drive mounting | Automatic letter assignment | Manual or automatic mount point |
| File permissions | ACLs | rwx (user/group/other) |