لابات 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
  1. 01
    First 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 دقيقة

  2. 02
    Paths 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 دقيقة

  3. 03
    Create 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 دقيقة

  4. 04
    Read 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 دقيقة

  5. 05
    Search 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 دقيقة

  6. 06
    Find 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 دقيقة

  7. 07
    Archive, 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 دقيقة

  8. 08
    Shell 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 دقيقة

  9. 09
    User 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 دقيقة

  10. 10
    Groups 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 دقيقة

  11. 11
    Permissions, 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 دقيقة

  12. 12
    Access 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 دقيقة

  13. 13
    Delegate 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 دقيقة

  14. 14
    Repair 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 دقيقة

  15. 15
    Install, 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 دقيقة

  16. 16
    Repositories 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 دقيقة

  17. 17
    Processes, 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 دقيقة

  18. 18
    Operate 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 دقيقة

  19. 19
    Create 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 دقيقة

  20. 20
    Investigate 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 دقيقة

  21. 21
    Time 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 دقيقة

  22. 22
    Inspect 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 دقيقة

  23. 23
    Persistent 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 دقيقة

  24. 24
    DNS 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 دقيقة

  25. 25
    firewalld 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 دقيقة

  26. 26
    Configure 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 دقيقة

  27. 27
    SSH 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 دقيقة

  28. 28
    SFTP 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 دقيقة

  29. 29
    Bastion 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 دقيقة

  30. 30
    Discover 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 دقيقة

  31. 31
    Filesystems 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 دقيقة

  32. 32
    Build 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 دقيقة

  33. 33
    Expand 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 دقيقة

  34. 34
    Configure 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 دقيقة

  35. 35
    Enforce 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 دقيقة

  36. 36
    NFSv4 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 دقيقة

  37. 37
    On-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.