أربع أدوات systemd تساعد في استكشاف أخطاء لينكس

دليل حديث يبرز أربع أدوات أساسية لـsystemd تساعد مستخدمي لينكس الجدد في تشخيص وحل مشكلات النظام الشائعة. يوفر systemd، نظام التهيئة المستخدم على نطاق واسع في التوزيعات الرئيسية، أدوات مدمجة لإدارة الخدمات، وعرض السجلات، وتحليل أوقات التشغيل، وفحص الانهيارات. تقدم هذه الأدوات نهجًا منظمًا لحل المشكلات دون التخمين.

يُعد systemd مدير النواة لأنظمة لينكس في توزيعات مثل أوبونتو، فيدورا، وديبيان، حيث يدير الخدمات والعمليات بكفاءة. رغم أنه يظل مكونًا مثيرًا للجدل في مجتمع لينكس —يُمدح بسبب شموليته لكنه يُنتقد من قبل البعض— فإن هذه الأدوات تجعله سهل الوصول لاستكشاف الأخطاء. الأداة الأولى، systemctl، تراقب وتتحكم في الخدمات. يمكن للمستخدمين التحقق من حالة خدمة مثل SSH باستخدام systemctl status ssh، مع ملاحظة سطور مثل Active (running)، Inactive (dead)، أو Failed، والتي تشمل PID الرئيسي وتفاصيل الخطأ. تشمل الإجراءات الشائعة بدء خدمة بـsudosystemctl start ssh، إيقافها بـsudo systemctl stop ssh، إعادة تشغيلها بـsudo systemctl restart ssh، أو تعطيلها بـsudo systemctl disable ssh لتحسين أوقات التشغيل. يسترد journalctl السجلات المركزية المشفرة التي تلتقط أخطاء التطبيقات المنهارة. تشغيل journalctl يعرض الإدخالات، لكن الفلاتر تعزز الاستخدامية: -x تضيف معلومات كتالوج تفسيرية، -e تعرض أحدث السجلات، موجهة لوحدة محددة مثل journalctl -u ssh، أو إطار زمني مثل journalctl --since '2 hours ago'. هذا يحل محل ملفات السجلات التقليدية المبعثرة بنظرة موحدة. للتشغيل البطيء، يحدد systemd-analyze نقاط الاختناق. الأمر systemd-analyze blame يسرد الخدمات حسب وقت البدء، كاشفًا عن السبب مثل مدير المودم الذي يستغرق دقائق. systemd-analyze critical-chain يُصور الاعتماديات، موضحًا كيف تؤثر التأخيرات في خدمة واحدة على السلسلة إلى سطح المكتب. يفحص coredumpctl مصادق الانهيار عند فشل التطبيقات تمامًا. coredumpctl list يظهر الانهيارات الأخيرة مع PIDs، بينما coredumpctl info <PID> يوفر تفاصيل مثل الإشارة (مثل SIGSEGV للوصول غير الصالح إلى الذاكرة) وتتبع المكدس، مما يساعد في التحقيق العميق. تمكن هذه الأدوات المستخدمين من الخروج عن إعادة التشغيل الأساسية، مما يتيح تشخيصًا دقيقًا لمشكلات مثل فشل الاتصال أو انهيار التطبيقات.

مقالات ذات صلة

Illustration of a determined user repairing a deliberately damaged Linux system in-place using chroot and live USB, showcasing OS resilience for a MakeUseOf article.
صورة مولدة بواسطة الذكاء الاصطناعي

Author deliberately breaks Linux system and recovers without reinstalling

من إعداد الذكاء الاصطناعي صورة مولدة بواسطة الذكاء الاصطناعي

A MakeUseOf article published on February 7, 2026, details an experiment where the author intentionally damaged a Linux installation in multiple ways and repaired it in place using standard tools, avoiding a full reinstall. The piece highlights Linux's resilience through techniques like chroot and live USB recovery. This approach challenges the common instinct to wipe and restart operating systems.

The systemd-analyze utility, built into Linux distributions using the systemd init system, allows users to quickly identify causes of slow boot processes. By running simple commands, it breaks down boot times into kernel and userspace components and highlights delaying services. This tool helps administrators make targeted adjustments to improve startup speeds without guesswork.

من إعداد الذكاء الاصطناعي

An article published on How-To Geek recommends installing seven command-line interface tools on every Linux system. The piece promises to unlock a faster and smarter Linux experience through these must-have tools. It was published on February 22, 2026.

The Linux kernel version 7.0 introduces enhancements to the Turbostat tool, enabling it to report new statistics on L2 cache performance. This update aims to provide developers and users with more detailed insights into hardware utilization. The changes were highlighted in a report from Phoronix.

من إعداد الذكاء الاصطناعي

The GNU project has released Coreutils 9.10, a stable update to its essential suite of file, shell, and text manipulation tools for Linux and Unix-like systems. This version addresses regressions from 9.9 and introduces enhancements for better performance and compatibility. Published on February 4, 2026, the release focuses on reliability across various utilities.

An article details a straightforward Linux backup method that prevented a major data loss incident. The author emphasizes not getting overwhelmed by backup processes and shares their personal approach. The piece was published on March 1, 2026.

من إعداد الذكاء الاصطناعي

Researchers at LevelBlue have identified a new variant of the SysUpdate malware aimed at Linux systems during a digital forensics and incident response engagement. The malware disguises itself as a legitimate system service and employs advanced encryption for command-and-control communications. By reverse-engineering it, the team created tools to decrypt its traffic more quickly.

 

 

 

يستخدم هذا الموقع ملفات تعريف الارتباط

نستخدم ملفات تعريف الارتباط للتحليلات لتحسين موقعنا. اقرأ سياسة الخصوصية الخاصة بنا سياسة الخصوصية لمزيد من المعلومات.
رفض