Theory
login के बाद क्या होता है?
आप ls जैसी एक command type करते हैं, Enter दबाते हैं, और कुछ तुरंत होता है। पर असल में command कौन प्राप्त करता है, hardware से बात करता है, और नतीजा वापस भेजता है? वह श्रृंखला Linux components का हृदय है।
Theory
एक restaurant सोचिए
kernel kitchen manager है, shell waiter है, और utilities restaurant में तैयार tools हैं।
- आप waiter को order देते हैं।
- kitchen काम तैयार करती है।
- tools और helpers दोहराए tasks को तेज़ बनाते हैं।
Theory
बात, औपचारिक रूप से
मुख्य components of Linux kernel, shell, utilities, और supporting libraries हैं। kernel hardware और मूल system tasks नियंत्रित करता है, shell user commands स्वीकारता है, utilities आम काम करते हैं, और libraries programs के लिए पुन: उपयोगी functions देती हैं।
At a glance
मुख्य Linux components और वे क्या करते हैं।
| Component | Role | सरल उदाहरण |
|---|---|---|
| Kernel | hardware और resources का मूल नियंत्रण | CPU, memory, और files manage करता है |
| Shell | Command interpreter | bash ls या pwd प्राप्त करता है |
| Utilities | आम user programs | cp, mv, cat, grep |
| Libraries | साझा helper code | कई programs द्वारा इस्तेमाल किए functions |
Think first
flow जाँचिए
tap करने से पहले सोचिए: जब आप एक command type करते हैं, कौन सा component पहले user से बात करता है?
Show the answer
shell पहले user से बात करता है और ज़रूरत पड़ने पर request को kernel को पहुँचाता है।
Quiz
कौन सा Linux component CPU और memory जैसे hardware resources को सीधे manage करता है?
- Shell
- Kernel
- Utility
- Library
Show the answer
Kernel
kernel hardware और मूल resources को सीधे manage करता है। shell सिर्फ़ command interpreter है, utilities user commands हैं, और libraries programs को support करती हैं।
Think first
एक और मानसिक जाँच
अगर एक program को एक file copy करनी है, कौन सी component श्रेणी आम तौर पर वह command देती है? जवाब देने से पहले सोचिए।
Show the answer
एक utility, जैसे cp command, वह function देती है।
Watch out
जाल
यह मत कहिए कि shell kernel के समान है। यह एक आम exam ग़लती है। shell commands स्वीकारता है, पर kernel पर्दे के पीछे असली system management काम करता है।
Quiz
इनमें से कौन Linux में एक shell है?
- bash
- CPU
- ext4
- gcc
Show the answer
bash
bash एक shell है। CPU hardware है, ext4 एक file system प्रकार है, और gcc एक compiler utility है।
Theory
इसे अभ्यास से जोड़िए
जब आप बाद में Linux commands, installation, या user accounts पढ़ते हैं, आप असल में इन components को मिलकर इस्तेमाल कर रहे हैं। एक exam वाक्य में, आप कह सकते हैं: shell user interaction सँभालता है, kernel resources manage करता है, और utilities tasks करने में मदद करती हैं।
Summary
Key takeaways
- Linux kernel, shell, utilities, और libraries से बना है।
- kernel वह core है जो hardware और resources manage करता है।
- shell user से commands प्राप्त करता है।
cpऔरlsजैसी utilities आम tasks करती हैं।- Libraries programs को code पुन: इस्तेमाल करने में मदद करती हैं।
- Memory hook: shell पूछता है, kernel करता है।