1. What is UNIX?
UNIX is a multiuser, multitasking, portable operating system originally developed at Bell Labs in 1969 by Ken Thompson and Dennis Ritchie. It was first written in assembly, then rewritten in C, making it highly portable across hardware platforms.
| Why UNIX Became Popular |
| Multiuser & Multitasking |
| Highly portable (written in C) |
| Stable and secure |
| Modular design |
| Powerful networking |
UNIX Philosophy
📌 “Do one thing and do it well.”
Instead of one huge monolithic program, UNIX uses many small utilities that cooperate through pipes.
Example: sort | grep | wc — three small tools chained together.
UNIX Architecture
| Layer (Top to Bottom) |
| Users |
| ↓ Shell (interprets commands) |
| ↓ Kernel (core OS services) |
| ↓ Hardware |
📌 Memory Trick — USKH: U → Users S → Shell K → Kernel H → Hardware
UNIX Components
| Component | Role | Examples / Details |
| Kernel |
Heart of UNIX — manages CPU, memory, devices, processes, files |
Process scheduling, memory management, device I/O |
| Shell |
Interface between user and kernel; interprets commands |
Bourne Shell (sh), Bash, C Shell (csh), Z Shell (zsh) |
| File System |
Organizes files, directories, and devices |
Everything in UNIX is a file — including devices like printer, keyboard, hard disk |
UNIX Directory Structure
| Directory | Purpose |
/ | Root — top of the hierarchy |
/home | User home directories |
/bin | Essential commands (ls, cp, mv) |
/etc | System configuration files |
/dev | Device files (disk, terminal, printer) |
/tmp | Temporary files |
/usr | User applications and libraries |
UNIX Process Management
| System Call | Purpose |
fork() | Creates a new child process; parent continues while child begins execution |
exec() | Replaces current process image with a new program |
wait() | Parent waits for child process to complete |
UNIX Security & Permissions
UNIX security is based on Users, Groups, and Permissions (rwx).
| Permission | Symbol | Numeric Value |
| Read | r | 4 |
| Write | w | 2 |
| Execute | x | 1 |
| Example Permission | Meaning |
rwxr-xr-- (755) | Owner: read+write+execute | Group: read+execute | Others: read only |
rwx------ (700) | Owner has all permissions; no one else can access |
📌 Memory Trick — RWX: R → Read(4) W → Write(2) X → Execute(1)
Common UNIX Commands
| Command | Purpose |
pwd | Print current working directory |
ls | List files and directories |
cd | Change directory |
mkdir | Create a new directory |
cp | Copy file |
mv | Move or rename file |
rm | Remove file |
cat | Display file contents |
chmod | Change file permissions |
ps | Show running processes |
Advantages and Disadvantages of UNIX
| Advantages | Disadvantages |
| Highly stable and reliable | Steeper learning curve (CLI-heavy) |
| Strong security model | Less user-friendly for beginners |
| Portable (runs on many hardware types) | Commercial UNIX variants can be expensive |
| Efficient multiuser/multitasking | Smaller consumer software ecosystem |
| Powerful networking | Hardware support can be limited |
2. What is Windows?
Windows is a family of GUI-based operating systems developed by Microsoft, and is the world's most widely used desktop operating system.
| Key Characteristics |
| Graphical User Interface (GUI) |
| Multitasking and Multiprocessing |
| Plug-and-Play hardware support |
| Built-in networking |
| User-friendly design |
Windows Architecture
| Layer | Components |
| User Mode | Applications, GUI (Explorer), System Utilities, Win32 Subsystem |
| Windows API | Interface between applications and kernel |
| Kernel Mode | Memory Manager, Scheduler, Device Drivers, Security Manager, I/O Manager |
| Hardware | Physical CPU, RAM, storage, devices |
Windows uses a Hybrid Kernel — combines features of monolithic and microkernel architectures.
📌 Memory Trick — AWKH: A → Applications W → Windows API K → Kernel H → Hardware
Windows Registry
The Windows Registry is a centralized hierarchical database that stores all system configuration.
| Registry Stores |
| Hardware configuration |
| User settings and preferences |
| Installed software information |
| System and security policies |
Unlike UNIX (where config is spread across text files in /etc), Windows centralizes all configuration in the Registry.
Windows File Systems
| File System | Features | Status |
| FAT | Simple, limited features, no permissions | Legacy |
| FAT32 | Improved FAT; max file size 4 GB | USB drives, older systems |
| NTFS | Permissions, encryption, compression, journaling, large file support | Primary modern Windows FS |
| exFAT | Extended FAT for flash storage | USB, SD cards |
📌 Memory Trick — PACE (NTFS Features): P → Permissions A → Access control C → Compression E → Encryption
Windows Security
| Mechanism | Purpose |
| User Accounts | Separate identities with different privilege levels |
| Access Control Lists (ACL) | Fine-grained per-file/folder permissions |
| Windows Firewall | Network traffic filtering |
| BitLocker Encryption | Full disk encryption |
| Windows Defender | Built-in antivirus and threat protection |
| UAC (User Account Control) | Prompts for admin consent on sensitive operations |
Advantages and Disadvantages of Windows
| Advantages | Disadvantages |
| Easy to use with rich GUI | Higher memory and CPU resource usage |
| Largest consumer software ecosystem | More frequently targeted by malware |
| Broad hardware compatibility (Plug-and-Play) | Proprietary — closed source |
| Strong gaming support (DirectX) | License cost for many versions |
| Familiar to most users | Less flexible than UNIX/Linux for servers |
3. UNIX vs Windows Comparison
| Feature | UNIX | Windows |
| Origin | Bell Labs, 1969 | Microsoft |
| Interface | CLI dominant | GUI dominant |
| Kernel type | Monolithic (traditional) / Modular | Hybrid kernel |
| File system | ext4, UFS, ZFS | NTFS, FAT32, exFAT |
| File philosophy | Everything is a file | Drive letters (C:, D:) |
| Portability | Highly portable (written in C) | Less portable |
| Security model | rwx user/group/other permissions | ACL-based permissions |
| Config storage | Text files in /etc | Centralized Registry |
| Stability | Extremely stable; preferred for servers | Very stable for desktop |
| Typical use | Servers, cloud, supercomputers, research | Desktop, office, gaming |
| Cost | Often free (Linux variants) | Paid licenses (consumer/enterprise) |
| Feature | UNIX Process Model | Windows Process Model |
| Philosophy | Process-centric (fork/exec) | Thread-centric scheduling |
| Scheduling | Priority-based preemptive | Preemptive priority scheduling |
| Both support | Multitasking, multiprocessing, multithreading, virtual memory, paging |
UNIX vs Linux (Frequently Confused)
| Feature | UNIX | Linux |
| Origin | Bell Labs, 1969 | Linus Torvalds, 1991 |
| Type | Original OS family | UNIX-like kernel (not original UNIX) |
| Source | Proprietary (mostly) | Open Source |
| Relationship | Original | Inspired by UNIX, developed independently |
Important Examination Facts
| Fact | Detail |
| UNIX developed | 1969 at Bell Labs |
| UNIX developers | Ken Thompson and Dennis Ritchie |
| UNIX written in | C (originally assembly) |
| UNIX philosophy | “Do one thing and do it well” / Everything is a file |
| Windows developer | Microsoft |
| Primary Windows file system | NTFS |
| Windows configuration | Centralized Registry |
| Windows kernel type | Hybrid kernel |
| UNIX shell examples | Bash, sh, csh, zsh |
| UNIX permission numeric | r=4, w=2, x=1 (e.g., 755 = rwxr-xr-x) |
Memory Tricks
| Mnemonic | Full Form |
| UNIX Architecture — USKH |
U → Users S → Shell K → Kernel H → Hardware |
| Windows Layers — AWKH |
A → Applications W → Windows API K → Kernel H → Hardware |
| UNIX Permissions — RWX |
R → Read(4) W → Write(2) X → Execute(1) |
| NTFS Features — PACE |
P → Permissions A → Access control C → Compression E → Encryption |
Frequently Asked Exam Questions
| Question | Answer |
| What is UNIX? | A multiuser, multitasking OS developed at Bell Labs in 1969 by Ken Thompson and Dennis Ritchie |
| Role of the shell in UNIX? | Interface between user and kernel; interprets and executes user commands |
| What is the Windows Registry? | A centralized database storing hardware config, user settings, installed software, and system policies |
| What is NTFS? | Primary modern Windows file system with permissions, encryption, compression, and journaling |
| What does “Everything is a file” mean? | UNIX represents devices, sockets, and hardware as files for uniform access through a common interface |
| UNIX vs Windows key difference? | UNIX: portable, CLI-focused, stable for servers. Windows: GUI-focused, user-friendly, desktop dominant. |
| What is the UNIX permission for 755? | Owner: rwx (7) | Group: r-x (5) | Others: r-x (5) |
Practice MCQs
-
1. UNIX was originally developed at:
A. IBM B. Microsoft C. Bell Labs D. Apple
✅ Answer: C — Bell Labs
-
2. Which component acts as the interface between user and UNIX kernel?
A. Loader B. Shell C. Driver D. Compiler
✅ Answer: B — Shell
-
3. Which is the primary modern Windows file system?
A. FAT B. FAT32 C. NTFS D. ext4
✅ Answer: C — NTFS
-
4. Which UNIX permission allows execution of a file?
A. Read B. Write C. Execute D. Delete
✅ Answer: C — Execute (x, value = 1)
-
5. Which statement best describes the Windows Registry?
A. A file allocation table B. A process scheduler C. A centralized configuration database D. A command interpreter
✅ Answer: C — A centralized configuration database