فحص اتصالات الشبكة والمقابس
استخدم أدوات Linux الحديثة لسرد المنافذ المفتوحة والاتصالات النشطة والعمليات التي تقف وراءها، حتى تفهم ما الذي يتصل به جهازك.
فحص اتصالات الشبكة والمقابس درس مجاني في Linux Networking & TCP/IP for Developers على CoddyKit. هذا هو الدرس 4 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في Linux Networking & TCP/IP for Developers، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة Linux Networking & TCP/IP for Developers 4 دروس في المجموع.
بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.
Why Inspect Connections?
Knowing which ports are open and which connections are live is key to debugging services, catching unexpected traffic, and confirming an app listens where you expect.
Meet ss
The modern tool for socket inspection is ss (socket statistics). It replaces older netstat and runs far faster on busy systems.
ssListening Ports
To see what's listening, stack flags: -l listening, -t TCP, -u UDP, -n numeric. Together: ss -tuln.
ss -tulnWhich Process Owns a Port
Add -p to reveal the process behind each socket — the fast answer to "what is using port 8080?"
sudo ss -tulnpActive Connections
Drop -l to see established connections instead of listeners — who your machine is actually talking to right now.
ss -tn state establishedFiltering by Port
ss takes powerful filters. Target a single port — like :443 — to focus only on HTTPS traffic.
ss -tn dport = :443Connection States
TCP sockets cycle through states like LISTEN, ESTABLISHED, TIME-WAIT, and CLOSE-WAIT. Plenty of CLOSE-WAIT often means an app isn't closing sockets.
Counting Connections
Pipe ss into wc -l to count connections — a quick way to spot connection leaks or rising load.
ss -tn state established | wc -lQuick Port Check With lsof
lsof lists open files, including network sockets. Run sudo lsof -i :8080 for a fast, targeted per-port lookup.
sudo lsof -i :8080Summary Statistics
ss -s prints a one-line summary of socket counts by type and state — a fast health glance for a server.
ss -sResolving Names
Drop the -n and ss resolves host and service names — friendlier to read, but slower on busy hosts.
ss -tuQuick Check
Test your socket-inspection knowledge.
Recap
Recap: ss is the fast modern tool — ss -tuln lists listeners, -p finds owning processes, and lsof -i gives quick per-port lookups.
تعلم Linux Networking & TCP/IP for Developers مع معلم ذكاء اصطناعي — مجانًا
اكتب وقم بتشغيل أكوادك الفعلية في المتصفح، واحصل على مساعدة فورية من معلم ذكاء اصطناعي متاح 24/7، واستمر من حيث توقفت على الويب أو في التطبيق.
- الدورات
- 12
- الدروس
- 48
الأسئلة الشائعة
هل درس «فحص اتصالات الشبكة والمقابس» مجاني؟
نعم — نص درس «فحص اتصالات الشبكة والمقابس» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة Linux Networking & TCP/IP for Developers، انتقل إلى CoddyKit PRO. تتضمن دورة Linux Networking & TCP/IP for Developers 4 دروس في المجموع.
ماذا ستتعلم في «فحص اتصالات الشبكة والمقابس»؟
استخدم أدوات Linux الحديثة لسرد المنافذ المفتوحة والاتصالات النشطة والعمليات التي تقف وراءها، حتى تفهم ما الذي يتصل به جهازك. تتمرن على Linux Networking & TCP/IP for Developers مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.
هل أحتاج إلى خبرة سابقة لأبدأ Linux Networking & TCP/IP for Developers؟
لا تُشترط خبرة سابقة. Linux Networking & TCP/IP for Developers على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 4 من أصل 4.
كم من الوقت يستغرق درس «فحص اتصالات الشبكة والمقابس»؟
معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.
هل يمكنني كتابة وتشغيل أكواد في درس Linux Networking & TCP/IP for Developers هذا؟
نعم. كل درس في Linux Networking & TCP/IP for Developers يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.
جميع الدروس في هذه الدورة
- أساسيات شبكات Linux
- أوامر الشبكات الأساسية
- واجهات الشبكة وعناوين IP
- فحص اتصالات الشبكة والمقابس