Lesson 1 / الدرس 1
What an operating system actually does / ما الذي يفعله نظام التشغيل فعلًا
Before any command makes sense, it helps to know what is on the other side of it. An operating system is a program whose whole job is sharing one machine between everything that wants it.
قبل أن يصير أي أمر مفهومًا، يفيد أن تعرف ما الذي على الطرف الآخر منه. فنظام التشغيل برنامج كل عمله تقاسم جهاز واحد بين كل ما يريده.
A computer has one set of hardware and many programs that all want it at once. Your browser wants memory, your editor wants the disk, a download wants the network. Something has to hand these out, keep the programs from treading on each other, and take it all back when they finish. That something is the operating system.
Four things it manages
| It manages | Which means | You will meet it in |
|---|---|---|
| Processes | Every running program, and whose turn it is | Lesson 19 |
| Files | One tree of names over several disks | Lessons 4 to 11 |
| Users | Who may read, write and run what | Lesson 10 |
| Devices | Keyboard, screen, disk, network | Lessons 13 and 14 |
This course is a tour of that list from the outside. Every command you learn is a way of asking the operating system to do one of these four things.
At the centre is the kernel — the part that actually touches the hardware. No ordinary program is allowed to. When your editor saves a file, it does not write to the disk; it asks the kernel to, and the kernel decides whether it may. That refusal is where "permission denied" comes from, and lesson 10 is about it.
Everything is a file
/home/ahmed/notes.txt an ordinary file
/dev/disk0 a whole disk, addressed like a file
/dev/null a file that discards whatever you write to it
/proc/cpuinfo not on disk at all — the kernel answering a question
Notice there are no drive letters. On macOS and Linux there is exactly one tree, starting at /, and additional disks are attached at some point inside it rather than given a letter of their own. A path therefore always begins from the same place, whatever hardware is underneath.
/، وتُوصل الأقراص الإضافية عند نقطة ما بداخلها بدل أن يُعطى كل واحد حرفًا خاصًا به. فالمسار يبدأ دائمًا من الموضع نفسه، أيًّا كان العتاد تحته./، أعلى الشجرة. والمستخدم الجذر هو حساب الإدارة الذي يجوز له كل شيء، بما فيه تدمير الجهاز. ولا صلة بينهما، والخلط بينهما هو كيف ينفّذ الناس أمرًا خطيرًا وهم يقصدون زيارة مجلد.Try it live / جرّب بنفسك
Check yourself / اختبر نفسك
1. Why can a program not write to the disk itself?
Every access goes through the kernel, which is what makes permissions possible at all. A refusal there is the "permission denied" of lesson 10.
2.
What does / mean?
/؟It is the root directory. The root user is a different thing entirely, and keeping the two apart matters more than it sounds.
3. What is meant by "everything is a file"?
A disk, a terminal and a live reading of the processor all appear as paths. That is why so few commands are needed to do so much.
Score / النتيجة: 0 / 3
Your task / مهمتك
Write a page explaining, to someone who has only ever used a mouse, what the operating system is doing while they work. Cover the four things it manages with one everyday example each — something they have actually seen — and finish by explaining the two meanings of "root" clearly enough that they would not confuse them.
اكتب صفحة تشرح لمن لم يستخدم إلا الفأرة ما الذي يفعله نظام التشغيل وهو يعمل. غطِّ الأشياء الأربعة التي يديرها بمثال يومي واحد لكل واحد — شيء رآه فعلًا — واختم بشرح معنيي "root" بوضوح يكفي ألا يخلط بينهما.
- All four responsibilities, each with an everyday example المسؤوليات الأربع كلها، لكل واحدة مثال يومي
- The kernel appears, and why a program must ask it النواة موجودة، ولماذا على البرنامج أن يسألها
- The two meanings of "root", told apart معنيا "root" مفرَّقان