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 કરે છે.