لابات Linux عملية و System Administration
لابات Linux بتحطك على سيرفر حقيقي ومعاك مهمة إدارة نظام فعلية. من أول login و التنقل في الـ filesystem، لحد ما تدير users و permissions، تشغّل services بـ systemd، تظبط الشبكة و SSH، وتبني storage بـ LVM و NFS.
هتتدرب على إيه في لابات Linux؟
- Shell و Filesystem
- Users و Groups
- Permissions و ACLs
- sudo و SELinux
- Packages (dnf و rpm)
- Processes و Signals
- systemd Services
- Logs و Rotation
- Networking و DNS
- firewalld
- SSH و Bastion
- Storage و LVM و XFS
- NFS و autofs
- 01First Login and System Discoveryابدأ اللاب
You have just been handed a server nobody documented. Find out what it is, what it runs on, and how much room it has, then write the handover note you wish you had received.
مبتدئ · 20 دقيقة
- 02Paths and Filesystem Navigationابدأ اللاب
Find the portal's configuration, its log and its inbox without moving a thing, and record where they live so the next person does not have to hunt.
مبتدئ · 20 دقيقة
- 03Create and Organize Files Safelyابدأ اللاب
Build the release workspace out of the files that landed in the inbox, keep the originals intact, and clean up your scratch space without deleting anything you cannot get back.
مبتدئ · 25 دقيقة
- 04Read and Edit Configuration Filesابدأ اللاب
Change three settings in a configuration file without losing the original, without touching anything else in it, and with a diff that proves exactly what you did.
مبتدئ · 25 دقيقة
- 05Search Logs and Build Pipelinesابدأ اللاب
Support wants the failed requests and a status summary from the portal's access log. Pull them out with grep, awk, sort and uniq, and keep stderr out of your reports.
مبتدئ · 30 دقيقة
- 06Find Files and Understand Linksابدأ اللاب
Hunt down misplaced configuration in a messy tree with find, then repair a release pointer, learning the difference between a hard link and a symbolic link on the way.
مبتدئ · 30 دقيقة
- 07Archive, Verify, and Restore a Releaseابدأ اللاب
Package a release so it can travel, prove nothing was lost on the way, and restore it somewhere safe before you ever trust the archive with the real thing.
مبتدئ · 35 دقيقة
- 08Shell Environment and a Repeatable Inventoryابدأ اللاب
Turn the inventory you gathered by hand into a command that any new shell can run, and learn where the shell finds commands and why.
مبتدئ · 35 دقيقة
- 09User Account Lifecycleابدأ اللاب
A new engineer starts today and a contractor's engagement ended yesterday. Onboard one properly and offboard the other completely, keeping the records an audit will ask for.
مبتدئ · 30 دقيقة
- 10Groups and Shared Project Directoriesابدأ اللاب
Two engineers need to work in the same directory and a third person must stay out of it. Groups, the setgid bit and a sensible umask do this without any ACLs.
مبتدئ · 30 دقيقة
- 11Permissions, umask, and Sticky Directoriesابدأ اللاب
A payroll file is world-writable and a shared scratch directory lets anyone delete anyone's work. Fix both with plain Unix permissions and understand what each bit actually does.
مبتدئ · 30 دقيقة
- 12Access Control Lists and Inheritanceابدأ اللاب
An auditor needs to read the platform team's directory without joining the team. Owner, group and other cannot express that; ACLs can, including for files that do not exist yet.
مبتدئ · 35 دقيقة
- 13Delegate a Narrowly Scoped sudo Actionابدأ اللاب
A support operator should be able to restart one service and nothing else. Write the smallest sudoers rule that does it, and prove the fence holds from the operator's seat.
مبتدئ · 35 دقيقة
- 14Repair SELinux File Contextsابدأ اللاب
The ops portal returns 403 on a server where the permissions are right and the web server is healthy. SELinux is doing its job on the wrong labels. Fix the labels, keep it enforcing.
متوسط · 30 دقيقة
- 15Install, Inspect, and Remove RPM Packagesابدأ اللاب
Install an approved tool from the company mirror, find out which package owns a file, undo the install cleanly, and leave evidence of what changed. dnf does the resolving; rpm answers the questions.
مبتدئ · 25 دقيقة
- 16Repositories and Controlled Package Updatesابدأ اللاب
Add the vendor's repository properly, verify its signing key against the fingerprint you were given, update the demo application, rehearse the rollback, and write it all down.
متوسط · 40 دقيقة
- 17Processes, Signals, and Job Controlابدأ اللاب
A worker is stuck and its neighbour is healthy. Find the right one by evidence, stop it politely, and leave the other alone. Then get comfortable with jobs in your own shell.
مبتدئ · 25 دقيقة
- 18Operate systemd Servicesابدأ اللاب
A service is installed but stopped and will not survive a reboot. Bring it up, understand start versus enable, then reboot the machine and watch it come back on its own.
مبتدئ · 25 دقيقة
- 19Create and Harden a Custom systemd Serviceابدأ اللاب
A supplied application needs to run as a service under its own account, with a controlled environment, an automatic restart, and a filesystem sandbox that lets it write to one place and nothing else.
متوسط · 45 دقيقة
- 20Investigate Logs and Configure Rotationابدأ اللاب
Pull the useful signal out of the journal, then keep an application's own log file from growing forever without losing the records it already holds.
متوسط · 35 دقيقة
- 21Time Zones and Reliable Time Synchronizationابدأ اللاب
Log timestamps on this machine disagree with the rest of the estate. Fix the time zone, point chrony at the lab's time reference on server1, and prove the two clocks agree.
متوسط · 30 دقيقة
- 22Inspect IPv4, IPv6, Routes, and Socketsابدأ اللاب
Before anyone changes a firewall or a listener, map the path from interface to service: addresses in both families, the route to the peer, and which sockets are actually open to the network.
متوسط · 30 دقيقة
- 23Persistent NetworkManager Configurationابدأ اللاب
The client needs a reserved address on the team's IPv6 data network, alongside the IPv4 address the platform gave it, and it has to survive a profile reload. nmcli, not ip, is how that persists.
متوسط · 35 دقيقة
- 24DNS Client Resolution and Lookup Troubleshootingابدأ اللاب
The client cannot find the internal app because its resolver points at a dead address and someone left a hosts-file override behind. Fix it through NetworkManager, then read the difference between a wrong answer, no answer, and NXDOMAIN.
متوسط · 35 دقيقة
- 25firewalld Zones and Least-Privilege Accessابدأ اللاب
One approved client may reach the app on server1; a second server on the same network may not. Write the narrowest firewalld rule that says so, make it permanent, and prove it from both sides.
متوسط · 35 دقيقة
- 26Configure and Operate an SSH Serverابدأ اللاب
Set up remote administration on server1 for a new trainee: tighten the daemon, validate before reloading, and verify the server's identity from the client the way a careful admin does on first contact.
متوسط · 35 دقيقة
- 27SSH Keys and Access Hardeningابدأ اللاب
A trainee logs into this server with a password. Move them to a key you can revoke, then switch passwords off for that account alone, without locking anybody else out.
متوسط · 35 دقيقة
- 28SFTP and Verified File Synchronizationابدأ اللاب
Ship a release to server1 as the deployment account, three ways, and prove the bytes that arrived are the bytes you sent. Then update it, and remove one known stale file without an unchecked --delete.
متوسط · 35 دقيقة
- 29Bastion Access and Restricted SSH Forwardingابدأ اللاب
server2 only accepts administration from server1, and its app listens on loopback. Reach it through the bastion without copying a private key anywhere, tunnel to the app on loopback only, and narrow what the bastion will forward.
متوسط · 40 دقيقة
- 30Discover Disks and Create a GPT Partitionابدأ اللاب
A new disk was attached. Prove which one it is, prove the root disk is not it, then lay down a GPT table and one aligned partition on exactly that disk and nothing else.
متوسط · 30 دقيقة
- 31Filesystems and Persistent UUID Mountsابدأ اللاب
Two partitions, two filesystems, two mount points that must come back after a reboot even if the device names change. Labels, UUIDs, fstab, and the tools that catch a typo before the reboot does.
متوسط · 35 دقيقة
- 32Build an LVM Application Volumeابدأ اللاب
An application needs storage that can grow later without a reinstall. Build it as a logical volume on the spare disk, mount it by UUID, and prove it comes back on its own after a reboot.
متوسط · 45 دقيقة
- 33Expand LVM and Grow an XFS Filesystemابدأ اللاب
The application volume is filling up and a second disk has arrived. Add it to the group, grow the volume and the filesystem while the application keeps writing, and prove nothing was lost, before and after a reboot.
متوسط · 35 دقيقة
- 34Configure Swap and Inspect Memory Pressureابدأ اللاب
Add a small swap area on its own partition, make it permanent, watch a bounded workload push the machine, and learn to tell 'memory is full' from 'memory is under pressure'.
متوسط · 30 دقيقة
- 35Enforce Per-Project XFS Storage Quotasابدأ اللاب
Two teams share one data volume and one of them has a habit of filling it. Turn on XFS project quotas, cap that team's directory, and prove the cap bites with real data while the other team keeps working.
متقدم · 40 دقيقة
- 36NFSv4 Server and Remote Client Accessابدأ اللاب
Two machines, one team directory. Export it from server1 to the client only, with root squashed, open the firewall for exactly that, mount it on the client, and prove who can write what.
متوسط · 45 دقيقة
- 37On-Demand NFS Mounting with autofsابدأ اللاب
The team share should appear when someone opens it and let go when nobody has for a while. autofs does that, with a master map, a map, and a timeout, and the mount table tells you whether it is working.
متوسط · 30 دقيقة
ليه تتعلم Linux عملي؟
- Linux هو الأساس اللي Docker و Kubernetes واقفين عليه؛ أي مشكلة في الآخر بتنزل لـ Linux.
- اللابات مرتبة كمسار إدارة نظام: أساسيات، هوية وصلاحيات، تشغيل يومي، شبكات وأمان، storage.
- كل لاب بينتهي بحاجة شغالة تقدر تتحقق منها: service شغال، mount ثابت بعد restart، وصول SSH مؤمّن.
أسئلة شائعة
أي توزيعة Linux؟
عائلة Red Hat (rpm و dnf و firewalld و SELinux)، وهي الأكثر انتشارًا في السيرفرات وفي الشهادات.
اللابات مناسبة لمبتدئ؟
أيوه. القسم الأول بيبدأ من أول login و الأوامر الأساسية، وبيتدرج لحد Storage و NFS.
في لابات SSH و Networking؟
أيوه: إعداد SSH server و المفاتيح، bastion و forwarding مقيد، وإعداد الشبكة و DNS و firewalld.