OS Internals Overview (filesystems, processes, permissions) | Cyber Security Tutorial - Learn with VOKS
Advance AI Bootstrap C C++ Computer Vision Content Writing CSS Cyber Security Data Analysis Deep Learning Email Marketing Excel Figma HTML Java Script Machine Learning MySQLi Node JS PHP Power Bi Python Python for AI Python for Analysis React React Native SEO SMM SQL
Back Next

OS Internals Overview (filesystems, processes, permissions)

Learn this topic step-by-step with VOKS Tutorials.

An operating system mainly manages three very important things:

  1. Filesystems (how data is stored)
  2. Processes (running programs)
  3. Permissions (who can access what)

Think of it like a company:

  • Filesystem = Filing cabinet
  • Processes = Workers doing tasks
  • Permissions = Access rules for rooms and documents

Filesystems

What Is a Filesystem?

A filesystem is the method the operating system uses to:

  • Store files
  • Organize folders
  • Keep track of where data lives on the disk

Without a filesystem, your computer would not know:

  • Where your documents are
  • Where programs are installed
  • Where your photos are stored

How Files Are Organized

Operating systems use a tree structure.

Example:

Root
 ├── Users
 │    ├── Alice
 │    │     └── file.txt
 │    └── Bob
 └── Program Files

There is always a top-level folder:

  • Windows → C:\
  • Linux/macOS → /

This top is called the root.

Common Filesystems

Different operating systems use different filesystems:

  • Windows → NTFS
  • Linux → ext4
  • macOS → APFS

Each filesystem controls:

  • Maximum file size
  • File permissions
  • Disk performance
  • Security features

Viewing Files via Command Line

Linux/macOS:

ls

Windows:

dir

Change directory:

cd foldername

Processes

What Is a Process?

A process is a running program.

When you:

  • Open a browser
  • Run a game
  • Start a text editor

The OS creates a process.

Important:

A program is just a file.

A process is that program running in memory.

What the OS Does for Each Process

The OS gives each process:

  • Memory (RAM)
  • CPU time
  • Process ID (PID)
  • Access permissions

Think of it like giving each worker:

  • A desk
  • Electricity
  • An ID badge
  • Work rules

Viewing Processes

Linux/macOS:

ps

Or live monitoring:

top

Windows:

tasklist

To stop a process (Linux/macOS):

kill 1234

(1234 = Process ID)

Permissions

Why Permissions Exist

Imagine if every user could:

  • Delete system files
  • Read other users’ private data
  • Modify the operating system

That would be chaos.

Permissions protect:

  • System files
  • User data
  • Running services

Types of Users

Most systems have:

  • Regular users
  • Administrator (Windows)
  • root (Linux/macOS superuser)

The administrator/root has full control.

File Permissions (Linux/macOS Example)

Each file has three permission categories:

  1. Owner
  2. Group
  3. Others

And three permission types:

  • Read (r)
  • Write (w)
  • Execute (x)

Example:

-rwxr-xr--

Meaning:

  • Owner: read, write, execute
  • Group: read, execute
  • Others: read only

Changing Permissions

Linux/macOS:

chmod 755 file.txt

Windows (basic example):

icacls file.txt

How These Three Work Together

Let’s say you open a text editor and save a file.

Here’s what happens internally:

  1. A process is created for the editor.
  2. The OS checks your permissions.
  3. The filesystem stores the file on disk.
  4. The OS updates metadata (size, location, owner).

Everything is coordinated by the OS kernel.

Simplified Internal Flow

When you run a program:

User Action
   ↓
Shell / GUI
   ↓
Operating System
   ↓
Kernel
   ↓
CPU + Memory + Disk

The kernel is the core of the OS that controls everything.

# List files (Linux/macOS)
ls

# List files (Windows PowerShell)
dir

# Change directory
cd foldername

# View processes (Linux/macOS)
ps

# Live process monitor (Linux/macOS)
top

# View processes (Windows)
tasklist

# Kill a process (Linux/macOS)
kill 1234

# View file permissions (Linux/macOS)
ls -l

# Change permissions (Linux/macOS)
chmod 755 file.txt

# Check permissions (Windows)
icacls file.txt
QUICK KNOWLEDGE CHECK

Test Your Understanding

Answer 5 questions generated from this lesson. Your result is calculated instantly and is not saved.

0 / 5 answered
All Courses
Advance AI Bootstrap C C++ Computer Vision Content Writing CSS Cyber Security Data Analysis Deep Learning Email Marketing Excel Figma HTML Java Script Machine Learning MySQLi Node JS PHP Power Bi Python Python for AI Python for Analysis React React Native SEO SMM SQL
Course contents
Cyber Security
01 Introduction 02 Types of Cyber Threats 03 Cyber Security Domains 04 CIA Triad (Confidentiality Integrity Availability) 05 Career paths in Cyber Security 06 Certifications 07 Ethics and Responsible Disclosure 08 Laws and Regulation (e.g. GDPR, NDPR) 09 What is an OS? 10 Types: Window, Linus, macOS 11 Command-line vs GUI 12 OS Internals Overview (filesystems, processes, permissions) 13 Windows command prompt basics 14 Linux Bash Basics 15 File System Navigation 16 Basic Scripting 17 IP Addressing 18 DNS, DHCP 19 Mac Address 20 OSI VS TCP/IP Models 21 Ports and Protocols (TCP, UDP) 22 Common Protocols (HTTPS, FTP, SSH, etc.) 23 Packet structure 24 Firewalls, IDS/IPS, VPNs 25 Common attacks: MITM, Sniffing 26 Secure Network Practices 27 How the Web works 28 HTTP vs HTTPS 29 URLs, Headers, Cookies 30 Client-Server Architecture 31 Introduction To Web Security 32 OWASP Top 10 Overview 33 Common Threats (XSS, SQLi, CSRF) 34 Inpute validation and authentication flow 35 Basic Exploitation demo (e.g. XSS) 36 Burp Suite Introduction 37 Using a Browser For Testing 38 Password security 39 MFA-Antivirus 40 Cyber Hygeine Practice 41 Intro To Tools: Nmap, Wireshark, Netstat