Computer Fundamentals – कंप्यूटर को Zero से समझें 💻#
नमस्ते दोस्तों! 👋
अगर आप Programming, Web Development, Networking, Linux, Cloud या AI सीखना चाहते हैं, तो सबसे पहले Computer Fundamentals समझना बहुत जरूरी है।
क्योंकि जब आपको यह पता हो कि:
Code → CPU → Memory → Storage → Operating System → Network
के बीच क्या हो रहा है, तब आगे के technical topics काफी आसान हो जाते हैं।
इस cheat sheet में हम computer को beginner से advanced level तक समझेंगे — बिना unnecessary theory के।
1. Computer क्या है?#
Computer एक electronic machine है जो data को input के रूप में लेता है, उसे process करता है और useful information output के रूप में देता है।
Simple model:
Input
↓
Processing
↓
Output
↓
Storage
Example
आप keyboard से लिखते हैं:
Input:
HelloComputer उस input को process करता है और screen पर दिखाता है:
Output:
HelloComputer का basic cycle
Input → Process → Output → Storageइसे अक्सर IPO Cycle कहा जाता है।
2. Computer की जरूरत क्यों पड़ी?#
Human manually बहुत सारे calculations और repetitive tasks कर सकता है, लेकिन computers:
- बहुत fast calculations कर सकते हैं
- बड़ी मात्रा में data store कर सकते हैं
- repetitive काम automatically कर सकते हैं
- network के through information exchange कर सकते हैं
- programs के instructions execute कर सकते हैं
लेकिन एक important बात
Computer खुद से normally यह decide नहीं करता कि उसे क्या करना है।
उसे instructions चाहिए।
Program
↓
Instructions
↓
Computer
↓
Resultइसीलिए programming important है।
3. Computer के Main Components#
एक computer system को broadly दो हिस्सों में समझ सकते हैं:
Computer System
│
├── Hardware
│
└── Software
Hardware
जिसे आप physically touch कर सकते हैं।
Examples:
- CPU
- RAM
- SSD
- Keyboard
- Mouse
- Monitor
- Motherboard
Software
Programs/instructions जो hardware को काम करने के लिए बताते हैं।
Examples:
- Windows
- Linux
- macOS
- Chrome
- VS Code
- Games
- Mobile Apps
आसान Mental Model
Hardware = Body 🖥️
Software = Instructions 🧠4. Hardware क्या है?#
Hardware computer के physical components होते हैं।
Main Hardware Components
| Component | काम |
|---|---|
| CPU | Instructions execute करता है |
| RAM | Temporary working memory |
| SSD/HDD | Data permanently store करता है |
| Motherboard | Components को connect करता है |
| GPU | Graphics/parallel workloads process करता है |
| PSU | Power provide करता है |
| Keyboard | Input |
| Mouse | Input |
| Monitor | Output |
5. CPU क्या है?#
CPU = Central Processing Unit
CPU computer के instructions execute करता है।
इसीलिए इसे commonly computer का “brain” कहा जाता है, हालांकि technically CPU सिर्फ system का एक processing component है।
CPU का basic flow
Instruction
↓
Fetch
↓
Decode
↓
Execute
↓
Result
इसे Instruction Cycle के रूप में समझा जा सकता है।
6. CPU के अंदर क्या होता है?#
CPU के अंदर कई important components होते हैं।
ALU
ALU = Arithmetic Logic Unit
Arithmetic और logical operations perform करता है।
Examples:
5 + 3
10 - 2
5 > 3
A == B
Control Unit
Instructions के execution को control करती है।
Registers
CPU के अंदर बहुत fast, छोटे storage locations होते हैं।
इनका उपयोग currently required values/instructions को hold करने के लिए किया जाता है।
Cache
CPU के पास बहुत fast memory होती है जिसे cache कहते हैं।
Common levels:
L1 → fastest, smallest
L2
L3 → larger, comparatively slower
7. CPU Core क्या है?#
एक CPU में एक या multiple processing cores हो सकते हैं।
Example:
CPU
├── Core 1
├── Core 2
├── Core 3
└── Core 4
Multiple cores computer को multiple tasks को concurrently process करने में मदद कर सकते हैं।
Core vs CPU
CPU = पूरा processor
Core = CPU के अंदर processing unit
8. Clock Speed क्या है?#
CPU की clock speed को सामान्यतः GHz में express किया जाता है।
Example:
3.5 GHz
लेकिन:
ज्यादा GHz का मतलब हमेशा ज्यादा performance नहीं होता।
Performance architecture, core count, cache, workload और कई दूसरे factors पर depend करती है।
9. RAM क्या है?#
RAM = Random Access Memory
RAM computer की working memory है।
जब कोई program currently चल रहा होता है, तो उसे execution के लिए memory की जरूरत होती है।
Example:
Storage
↓
Program Load
↓
RAM
↓
CPU
RAM की खासियत
RAM generally:
- fast होती है
- temporary working data रखती है
- power off होने पर stored contents retain नहीं करती
10. RAM vs Storage#
यह सबसे important beginner concepts में से एक है।
| RAM | Storage |
|---|---|
| Working memory | Permanent data storage |
| Fast | RAM से generally slower |
| Temporary | Persistent |
| Running apps के लिए useful | Files/apps रखने के लिए |
| Power off → contents lost | Power off → data normally रहता है |
Example
अगर आपके laptop में:
16 GB RAM
512 GB SSD
तो:
16 GB = current work के लिए memory
512 GB = files, apps और OS के लिए storage
11. SSD और HDD#
दोनों storage devices हैं।
HDD
Hard Disk Drive
Traditional magnetic storage technology।
SSD
Solid State Drive
Flash-based storage technology।
General comparison:
| Feature | HDD | SSD |
|---|---|---|
| Moving parts | Yes | No |
| Typical speed | Lower | Higher |
| Noise | Can produce mechanical noise | Silent |
| Shock resistance | Lower | Generally higher |
| Cost per GB | Often lower | Often higher |
12. ROM क्या है?#
ROM = Read-Only Memory
Traditional computer terminology में ROM ऐसे non-volatile memory को refer करता है जिसका data सामान्य RAM की तरह freely बदलता नहीं है।
Modern systems में firmware storage implementations काफी अलग हो सकती हैं, इसलिए:
ROM को simply “computer की permanent memory” कहना oversimplification है।
13. Motherboard क्या है?#
Motherboard computer का main circuit board है।
यह different components के बीच communication और physical/electrical connections provide करता है।
CPU
│
│
RAM ───── Motherboard ───── Storage
│
GPU / PCIe
│
Other Devices
14. GPU क्या है?#
GPU = Graphics Processing Unit
GPU graphics processing के लिए designed है।
Examples:
- Games
- 3D rendering
- Video processing
- Graphics workloads
- कुछ parallel computing workloads
- AI/ML workloads में certain operations
CPU और GPU की architecture और workloads अलग होते हैं।
Simple Mental Model
CPU → General-purpose processing
GPU → Highly parallel workloads
15. Input और Output Devices#
Input Devices
Computer को data/instructions देने के लिए:
- Keyboard
- Mouse
- Microphone
- Scanner
- Webcam
- Touchscreen
Output Devices
Computer से result प्राप्त करने के लिए:
- Monitor
- Speaker
- Printer
- Projector
Example
Keyboard → Computer → Monitor
Input Output
16. Software क्या है?#
Software instructions और programs का collection है।
Main categories:
Software
│
├── System Software
│
├── Application Software
└── Programming Software
System Software
Hardware और applications के बीच basic platform provide करता है।
Examples:
- Operating Systems
- Device-related software
- System utilities
Application Software
User के specific काम के लिए:
- Browser
- Word processor
- Media player
- Games
- Image editor
Programming Software
Developers के लिए:
- Code editors
- Compilers
- Interpreters
- Debuggers
17. Operating System क्या है?#
Operating System (OS) computer के hardware और software resources को manage करता है और applications को services provide करता है।
Examples:
- Windows
- Linux
- macOS
- Android
- iOS
Mental Model
Applications
↓
Operating System
↓
Hardware
Application generally hardware से directly deal नहीं करती।
OS बीच में important abstraction layer provide करता है।
18. OS के Main Responsibilities#
Operating System कई important tasks manage करता है:
1. Process Management
Running programs/processes को manage करना।
2. Memory Management
Programs को memory resources देना और manage करना।
3. File Management
Files और directories manage करना।
4. Device Management
Hardware devices के साथ interaction manage करना।
5. Security
Users, permissions और system resources को protect करना।
6. Networking
Network communication के लिए system services provide करना।
19. Program vs Process#
यह interview और development दोनों के लिए important concept है।
Program
Storage पर मौजूद instructions/code।
Process
जब program execution में आता है, तो OS उसके लिए process create करता है।
Program
↓ Execute
Process
Example:
Chrome की application files storage पर मौजूद हैं।
जब आप Chrome open करते हैं:
Chrome Program
↓
Chrome Process
↓
CPU + RAM
20. Process vs Thread#
Process
Running program का execution environment।
Thread
Process के अंदर execution की smaller unit।
Simple model:
Process
│
├── Thread 1
├── Thread 2
└── Thread 3
एक process में multiple threads हो सकते हैं।
21. File क्या है?#
File data का named collection है।
Examples:
photo.jpg
document.pdf
app.js
data.json
video.mp4
File में data और associated metadata हो सकता है।
22. Directory / Folder क्या है?#
Folder files और दूसरे folders को organize करने के लिए use होता है।
Example:
project/
├── src/
│ ├── app.js
│ └── index.js
├── images/
│ └── logo.png
└── README.md
23. File Extension क्या है?#
Filename का extension अक्सर file के type को indicate करता है।
Examples:
.jpg → image
.png → image
.txt → text
.pdf → PDF document
.js → JavaScript source
.json → JSON data
लेकिन extension अकेले यह guarantee नहीं करता कि file के अंदर वास्तव में वही format है।
24. Binary क्या है?#
Computer internally data को binary representation में process करता है।
Binary में दो symbols होते हैं:
0
1
इनको bits कहा जाता है।
Bit
सबसे basic binary unit:
0 or 1
Byte
Commonly:
1 Byte = 8 bits
25. KB, MB, GB, TB#
Storage और memory में units use होते हैं।
Common decimal storage convention:
1 KB = 1,000 bytes
1 MB = 1,000 KB
1 GB = 1,000 MB
1 TB = 1,000 GB
Computer memory contexts में binary units भी मिलते हैं:
1 KiB = 1,024 bytes
1 MiB = 1,024 KiB
1 GiB = 1,024 MiB
1 TiB = 1,024 GiB
KB और KiB को same मानना technically correct नहीं है।
26. Data कैसे represent होता है?#
Computer different types of data को binary representation में process करता है।
Text
Images
Audio
Video
Numbers
Code
↓
Binary Data
↓
Computer Processing
Text के लिए character encoding systems use होते हैं।
Important terms:
- ASCII
- Unicode
- UTF-8
27. Compiler vs Interpreter#
Programming languages के context में दो common concepts:
Compiler
Source code को किसी target form में translate करता है, often before execution.
Interpreter
Program instructions को runtime पर interpret/execute करने का model use करता है।
Modern language implementations अक्सर pure categories नहीं होतीं और compilation + interpretation/JIT जैसे techniques combine कर सकती हैं।
Simple Mental Model
Source Code
↓
Compiler / Runtime
↓
Executable / Execution
28. Kernel क्या है?#
Kernel Operating System का core component है।
यह hardware resources और system software के बीच critical interface provide करता है।
Applications
↓
System Calls
↓
Kernel
↓
Hardware
Kernel commonly:
- CPU scheduling
- Memory management
- Device interaction
- Process management
- File systems
- Networking
जैसे core responsibilities handle करता है।
29. System Call क्या है?#
Application को जब OS की service चाहिए होती है, तो वह system call interface के through kernel से request कर सकती है।
Example concept:
Application
↓
System Call
↓
Kernel
↓
Hardware / OS Resource
जैसे file open करना, process-related operations या network operations में OS services की जरूरत पड़ सकती है।
30. Booting क्या है?#
जब computer start होता है, तो system को usable state में लाने की process को booting कहते हैं।
Simplified flow:
Power On
↓
Firmware
↓
Bootloader
↓
Operating System Kernel
↓
System Services
↓
Login / Desktop
Modern systems में firmware commonly UEFI होता है।
31. BIOS vs UEFI#
BIOS traditional firmware interface है।
UEFI modern firmware standard/interface है।
UEFI modern systems में कई capabilities provide करता है, जैसे:
- Modern boot process
- Boot manager
- Firmware configuration
- Support for modern partitioning schemes
32. Computer Storage Hierarchy#
Fast memory generally expensive और smaller होती है।
एक simplified hierarchy:
CPU Registers
↓
CPU Cache
↓
RAM
↓
SSD
↓
HDD / External Storage
ऊपर की तरफ:
faster + smaller
नीचे की तरफ:
slower + larger
यह hierarchy computer performance समझने के लिए बहुत useful mental model है।
33. Virtual Memory क्या है?#
जब physical RAM पर्याप्त नहीं होती, OS storage के कुछ हिस्से को memory management के लिए use कर सकता है।
इसे broadly virtual memory concepts के तहत समझा जाता है।
Important:
Virtual memory RAM का exact replacement नहीं है।
Storage RAM की तुलना में significantly slower हो सकती है।
34. Cache क्या है?#
Cache का basic idea:
Frequently/strategically needed data को faster storage/location के पास रखना।
Examples:
CPU Cache
Browser Cache
Database Cache
CDN Cache
General principle:
Frequently Used Data
↓
Keep Closer / Faster
↓
Reduce Repeated Work
35. Networking का Basic Idea#
Computer अकेला system नहीं है।
जब दो या ज्यादा devices communicate करते हैं, तो networking की जरूरत होती है।
Computer A
↓
Network
↓
Computer B
Network में important concepts:
- IP Address
- MAC Address
- Router
- Switch
- DNS
- TCP/IP
- HTTP/HTTPS
- Ports
इन topics को आगे अलग cheat sheets में detail में पढ़ना चाहिए।
36. IP Address क्या है?#
IP address network पर device/interface को identify/address करने के लिए use होता है।
Common versions:
IPv4
IPv6
Example IPv4:
192.168.1.10
Example IPv6:
2001:db8::1
37. MAC Address क्या है?#
MAC address network interface के साथ associated link-layer identifier है।
Simple difference:
IP → Network-level addressing
MAC → Link-layer identification
Practical networking में दोनों की roles अलग हैं।
38. Port क्या है?#
IP address machine/interface को identify/address करने में मदद करता है।
Port number किसी host पर network service/process को distinguish करने में मदद करता है।
Example:
192.168.1.10:8080
यहाँ:
192.168.1.10 → IP
8080 → Port
39. Internet क्या है?#
Internet एक global network of interconnected networks है।
Simple model:
Your Device
↓
Router / ISP
↓
Internet
↓
Server
जब आप किसी website को open करते हैं, तो कई network protocols और systems मिलकर request को destination तक पहुँचाते हैं।
40. DNS क्या करता है?#
DNS = Domain Name System
Human-friendly domain name को IP address information में resolve करने में मदद करता है।
Example:
example.com
↓
DNS
↓
IP address
↓
Server
इसे internet की “phonebook” कहना useful analogy है, लेकिन DNS सिर्फ simple phonebook से अधिक capabilities वाला distributed system है।
41. HTTP और HTTPS#
HTTP
Web clients और servers के बीच application-layer communication protocol।
HTTPS
HTTP communication को TLS के through secure करता है।
Simplified:
Browser
↓
HTTPS
↓
Web Server
HTTPS confidentiality, integrity और server authentication जैसी security properties provide करने के लिए TLS use करता है।
42. Cyber Security Basics#
Computer use करते समय basic security जरूरी है।
Important practices
- Strong unique passwords
- Password manager
- Multi-factor authentication
- Software updates
- Trusted software sources
- Regular backups
- Suspicious links से सावधान
- Least privilege
- Device lock/encryption जहाँ appropriate हो
CIA Triad
Security का classic model:
Confidentiality
Integrity
Availability
Confidentiality
Data केवल authorized users access करें।
Integrity
Data unauthorized तरीके से modify न हो।
Availability
Required time पर system/data available रहे।
43. Backup क्या है?#
Backup किसी important data की अलग copy है।
Example:
Original Data
↓
Backup
↓
Different Storage / Location
Important principle:
Backup तभी useful है जब आप उसे restore भी कर सकें।
इसलिए backups को periodically test करना चाहिए।
44. Troubleshooting Mental Model#
Computer में problem आए तो random चीजें बदलने के बजाय systematic approach use करें।
Problem
↓
Observe
↓
Reproduce
↓
Identify Layer
↓
Check Logs / Errors
↓
Test Hypothesis
↓
Fix
↓
Verify
Layer-wise सोचें
Hardware?
↓
OS?
↓
Application?
↓
Network?
↓
Configuration?
↓
Permissions?
45. Common Problems#
| Problem | पहले क्या check करें? |
|---|---|
| Computer won’t start | Power, cables, hardware indicators |
| App crashes | Error message, logs, updates |
| Computer slow | CPU/RAM/storage usage |
| Internet नहीं चल रहा | Network connection, router, DNS |
| Website नहीं खुल रही | DNS, connectivity, browser |
| File नहीं खुल रही | File type, permissions, corruption |
| Storage full | Large files/apps/cache |
| Program permission error | User permissions/access |
46. Performance समझने का तरीका#
Computer slow होने पर सिर्फ “CPU slow है” मत मानिए।
इन resources को check करें:
CPU
RAM
Disk / Storage
Network
GPU
Processes
Example:
CPU = 20%
RAM = 95%
इस situation में CPU necessarily bottleneck नहीं है; memory pressure investigate करना अधिक relevant हो सकता है।
47. Computer का Complete Mental Model#
अब पूरे system को एक साथ देखें:
USER
│
↓
APPLICATION
│
↓
OPERATING SYSTEM
│
┌────────┴────────┐
↓ ↓
KERNEL SERVICES
│
↓
HARDWARE
┌──────┼─────────┐
↓ ↓ ↓
CPU RAM STORAGE
│
↓
PROCESSING
│
↓
OUTPUT
Network application में:
Application
↓
OS Networking
↓
Network Interface
↓
Router
↓
Internet
↓
Remote Server
48. एक Real-World Example: Browser में Website खोलना#
मान लीजिए आप browser में लिखते हैं:
https://example.com
High-level flow:
1. Keyboard input
↓
2. Browser receives input
↓
3. DNS resolution
↓
4. Network connection
↓
5. HTTPS/TLS communication
↓
6. HTTP request
↓
7. Server processing
↓
8. HTTP response
↓
9. Browser parses content
↓
10. CPU + GPU rendering
↓
11. Monitor पर webpage
यह एक single action के पीछे होने वाली कई layers का example है।
49. Programming सीखने के लिए Computer Fundamentals क्यों जरूरी हैं?#
जब आप code लिखते हैं:
console.log("Hello");
तो यह सिर्फ screen पर text दिखाई देने जितना simple नहीं है।
Conceptually:
Source Code
↓
Runtime / Language Implementation
↓
OS
↓
CPU + Memory
↓
Output
इसीलिए आगे जाकर आपको ये concepts समझने चाहिए:
Computer Fundamentals
↓
Operating Systems
↓
Terminal
↓
Networking
↓
Programming
↓
Databases
↓
Cloud / DevOps
50. Quick Reference#
Computer#
Input → Process → Output → Storage
Hardware#
CPU
RAM
Storage
Motherboard
GPU
Input/Output Devices
Software#
System Software
Application Software
Programming Software
Memory#
Registers
↓
Cache
↓
RAM
↓
Storage
OS#
Process Management
Memory Management
File Management
Device Management
Networking
Security
Networking#
IP
MAC
Port
DNS
TCP/IP
HTTP
HTTPS
Router
Switch
Security#
Confidentiality
Integrity
Availability
51. Important Differences – One Look#
| Concept | याद रखने का आसान तरीका |
|---|---|
| Hardware | Physical parts |
| Software | Programs/instructions |
| CPU | Instructions execute करता है |
| RAM | Current working memory |
| SSD/HDD | Persistent storage |
| GPU | Graphics + parallel workloads |
| OS | Hardware/resources manage करता है |
| Process | Running program |
| Thread | Process के अंदर execution unit |
| File | Named data |
| Folder | Files organize करता है |
| Kernel | OS का core |
| IP | Network addressing |
| Port | Service/process endpoint identification |
| DNS | Domain → IP information resolution |
| HTTP | Web communication |
| HTTPS | HTTP secured with TLS |
52. Common Beginner Mistakes#
❌ RAM को storage समझना
RAM और SSD/HDD अलग चीजें हैं।
❌ CPU को पूरा computer समझना
CPU सिर्फ एक major component है।
❌ Internet और Web को same समझना
Internet network infrastructure है।
Web internet पर चलने वाली एक major service है।
❌ File extension को actual format मान लेना
.jpg नाम होने से जरूरी नहीं कि content valid JPEG हो।
❌ More GHz = Always Faster
Performance कई factors पर depend करती है।
❌ Cache को backup समझना
Cache temporary/performance-oriented mechanism है; backup अलग concept है।
53. Knowledge Check 🧠#
Beginner#
- Computer क्या है?
- Hardware और software में क्या difference है?
- CPU का basic काम क्या है?
- RAM और storage में क्या difference है?
- Operating System क्या करता है?
Intermediate#
- Process और program में क्या difference है?
- Process और thread में क्या difference है?
- Kernel क्या है?
- DNS का काम क्या है?
- IP address और port में क्या difference है?
Advanced#
- CPU cache की जरूरत क्यों होती है?
- Virtual memory क्या solve करती है?
- System call क्या होता है?
- HTTPS में TLS की क्या भूमिका है?
- Computer में performance bottleneck कैसे identify करेंगे?
54. Practical Exercises#
Exercise 1 — अपने Computer को Explore करें
अपने system में identify करें:
CPU:
RAM:
Storage:
GPU:
Operating System:
Exercise 2 — Running Processes देखें
अपने OS का process/task manager खोलें।
देखें:
CPU usage
Memory usage
Disk usage
Network usage
Exercise 3 — File System Explore करें
एक folder बनाएं:
computer-fundamentals/
├── notes/
├── images/
└── projects/
Exercise 4 — Network Basics
अपने system पर identify करें:
IP address
Network interface
Default gateway
DNS configuration
Exercise 5 — Website Flow
किसी website को open करते समय mentally यह flow समझाएं:
Browser
→ DNS
→ Network
→ HTTPS
→ Server
→ Response
→ Browser Rendering
55. Interview Quick Questions#
Q: CPU क्या करता है?
CPU program instructions को execute/process करता है।
Q: RAM क्यों चाहिए?
Currently running programs और working data के लिए fast temporary memory provide करने के लिए।
Q: SSD और RAM में difference?
SSD persistent storage है; RAM working memory है।
Q: OS क्या है?
Hardware resources manage करने और applications को services provide करने वाला system software।
Q: Kernel क्या है?
Operating System का core component जो hardware/resources के साथ low-level management करता है।
Q: DNS क्या है?
Domain names को network addressing information से resolve करने वाला distributed naming system।
Q: Process क्या है?
Program का running instance/execution environment।
Q: HTTPS क्या है?
HTTP communication को TLS के माध्यम से secure करने का तरीका।
56. आगे क्या सीखें?#
Computer Fundamentals के बाद recommended learning path:
Computer Fundamentals
↓
Terminal / Shell
↓
Linux
↓
Git
↓
Internet Fundamentals
↓
DNS
↓
HTTP / HTTPS
↓
HTML
↓
CSS
↓
JavaScript
↓
Node.js
↓
Databases
↓
Docker
↓
Cloud
↓
System Design
अगर आपका goal Web Development है, तो सबसे useful next topics होंगे:
Terminal → Git → Internet → DNS → HTTP/HTTPS → HTML → CSS → JavaScript
57. Summary 🎯#
आज हमने Computer को सिर्फ “एक machine” की तरह नहीं, बल्कि layers के रूप में समझा:
User
↓
Application
↓
Operating System
↓
Kernel / System Services
↓
Hardware
↓
CPU + RAM + Storage + Network
सबसे important concepts:
- Computer = Input + Processing + Output + Storage
- Hardware = Physical components
- Software = Instructions/programs
- CPU = Instruction execution
- RAM = Working memory
- SSD/HDD = Persistent storage
- OS = Resource manager + system platform
- Process = Running program
- Thread = Execution unit within a process
- Kernel = OS core
- Binary = 0 और 1 आधारित representation
- DNS = Domain resolution
- IP = Network addressing
- Port = Service/process identification
- HTTPS = Secure web communication
- Backup = Recoverable copy of important data
Computer Fundamentals strong हैं तो आगे की programming और infrastructure concepts समझना काफी आसान हो जाता है।