ๆƒฏๆ€ง่šๅˆ ้ซ˜ๆ•ˆ่ฟฝ่ธชๅ’Œ้˜…่ฏปไฝ ๆ„Ÿๅ…ด่ถฃ็š„ๅšๅฎขใ€ๆ–ฐ้—ปใ€็ง‘ๆŠ€่ต„่ฎฏ
้˜…่ฏปๅŽŸๆ–‡ ๅœจๆƒฏๆ€ง่šๅˆไธญๆ‰“ๅผ€

ๆŽจ่่ฎข้˜…ๆบ

Apple Machine Learning Research
Apple Machine Learning Research
Jina AI
Jina AI
ๅš
ๅšๅฎขๅ›ญ_้ฆ–้กต
WordPressๅคงๅญฆ
WordPressๅคงๅญฆ
็ฝ—
็ฝ—็ฃŠ็š„็‹ฌ็ซ‹ๅšๅฎข
ๅฐไผ—่ฝฏไปถ
ๅฐไผ—่ฝฏไปถ
Last Week in AI
Last Week in AI
้’›ๅช’ไฝ“๏ผšๅผ•้ข†ๆœชๆฅๅ•†ไธšไธŽ็”Ÿๆดปๆ–ฐ็Ÿฅ
้’›ๅช’ไฝ“๏ผšๅผ•้ข†ๆœชๆฅๅ•†ไธšไธŽ็”Ÿๆดปๆ–ฐ็Ÿฅ
Hugging Face - Blog
Hugging Face - Blog
OSCHINA ็คพๅŒบๆœ€ๆ–ฐๆ–ฐ้—ป
OSCHINA ็คพๅŒบๆœ€ๆ–ฐๆ–ฐ้—ป
็ˆฑ่Œƒๅ„ฟ
็ˆฑ่Œƒๅ„ฟ
The Cloudflare Blog
GbyAI
GbyAI
C
Check Point Blog
่…พ
่…พ่ฎฏCDC
MyScale Blog
MyScale Blog
ๆœ‰่ตžๆŠ€ๆœฏๅ›ข้˜Ÿ
ๆœ‰่ตžๆŠ€ๆœฏๅ›ข้˜Ÿ
ๅš
ๅšๅฎขๅ›ญ - ่‚ๅพฎไธœ
ITไน‹ๅฎถ
ITไน‹ๅฎถ
้›ทๅณฐ็ฝ‘
้›ทๅณฐ็ฝ‘
H
Help Net Security
ๅš
ๅšๅฎขๅ›ญ - ๅถๅฐ้’—
็พŽ
็พŽๅ›ขๆŠ€ๆœฏๅ›ข้˜Ÿ
D
DataBreaches.Net

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Donโ€™t Fail โ€” They Drift Spilling beans for how i learn for exam๐Ÿ˜"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" โ€” What Actually Happened Comfy Cloudโ€™s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions โ€” here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components โ€” Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cรณmo construรญ un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 ๐Ÿš€ I Built an Ethical Hacking Scanner Tool โ€“ Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points โ€” Here's What I Found About How Markets Really Move EcoTrack AI โ€” Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Linux Networking Commands Every Engineer Should Learn
Pallavi ยท 2026-06-18 ยท via DEV Community

๐ŸŒ Linux Networking Commands Every Engineer Should Learn

Modern software systems are no longer confined to a single machine. Applications run across servers, containers, cloud environments, Kubernetes clusters, edge devices, and distributed networks spread across multiple regions.

In this interconnected world, networking issues can bring entire systems to a halt.

๐Ÿšซ A web application may suddenly become unreachable.

๐Ÿšซ A microservice may fail to communicate with another service.

๐Ÿšซ A database connection may timeout.

๐Ÿšซ A Kubernetes pod may become inaccessible.

When such incidents occur, experienced engineers don't immediately blame the application code. Instead, they begin investigating the network.

This is where Linux networking commands become invaluable.

Whether you're a Linux administrator, DevOps engineer, cloud architect, software developer, cybersecurity analyst, or Site Reliability Engineer (SRE), understanding Linux networking tools is a fundamental skill.


๐Ÿš€ Why Networking Skills Matter for Modern Engineers

Consider a common production scenario.

Situation

โœ… Application deployed successfully

โœ… CPU usage is normal

โœ… Memory usage is healthy

โŒ Users cannot access the application

Possible causes include:

โœ”๏ธ DNS Resolution Failure

โœ”๏ธ Routing Issues

โœ”๏ธ Firewall Restrictions

โœ”๏ธ Network Latency

โœ”๏ธ Port Accessibility Problems

โœ”๏ธ Load Balancer Misconfiguration

โœ”๏ธ Container Networking Issues

Without networking knowledge, identifying the root cause becomes difficult.

Linux networking commands provide visibility into what's happening beneath the application layer.


๐Ÿ” Understanding the Networking Troubleshooting Workflow

Experienced engineers often follow a structured approach:

Application Issue
       โ†“
Check Connectivity
       โ†“
Verify DNS
       โ†“
Validate Routing
       โ†“
Check Ports
       โ†“
Inspect Traffic
       โ†“
Identify Root Cause

The commands covered in this guide form the foundation of that workflow.


๐ŸŒ 1. ip Command

The ip command is one of the most important networking utilities in modern Linux systems.

It replaces legacy tools such as:

โœ… ifconfig

โœ… route

โœ… arp


Display IP Addresses

ip addr show

Example Output

eth0: 192.168.1.100/24

This reveals:

โœ”๏ธ IP Address

โœ”๏ธ Subnet Mask

โœ”๏ธ Network Interface Information


Display Routing Table

ip route

Example Output

default via 192.168.1.1 dev eth0

This shows how packets travel through the network.

Why Engineers Use It

โœ… Diagnose connectivity issues

โœ… Verify network interfaces

โœ… Validate routing configurations


๐Ÿ“ก 2. ping Command

The ping command checks network connectivity between systems.

Example

ping google.com

Example Output

64 bytes from google.com:
time=18 ms

What Ping Helps Identify

โœ”๏ธ Network Reachability

โœ”๏ธ Packet Loss

โœ”๏ธ Latency Issues

โœ”๏ธ DNS Functionality

Practical Scenario

ping database-server

Useful when troubleshooting database connectivity issues.


๐Ÿ›ฃ๏ธ 3. traceroute Command

Sometimes a destination is reachable, but packets experience delays.

This is where traceroute becomes useful.

Example

traceroute google.com

Example Output

1 Router A
2 ISP Gateway
3 Regional Backbone
4 Google Network

What It Shows

โœ”๏ธ Every network hop

โœ”๏ธ Routing path

โœ”๏ธ Bottlenecks

โœ”๏ธ Routing loops

Real-World Benefits

โœ… Network troubleshooting

โœ… ISP issue detection

โœ… Cloud connectivity analysis


๐Ÿ”Ž 4. nslookup Command

DNS is often the hidden cause of application failures.

Example

nslookup google.com

Output

Name: google.com
Address: 142.250.x.x

Why It Matters

Applications communicate through:

โœ”๏ธ Domain Names

Not:

โŒ Raw IP Addresses

If DNS fails, applications become inaccessible.


๐Ÿ“– 5. dig Command

Engineers often prefer dig because it provides detailed DNS information.

Example

dig google.com

Important Sections

โœ”๏ธ ANSWER SECTION

โœ”๏ธ AUTHORITY SECTION

โœ”๏ธ QUERY TIME

Common Use Cases

โœ… DNS Troubleshooting

โœ… Mail Server Verification

โœ… Cloud Service Validation

โœ… Performance Analysis


๐Ÿ“Š 6. netstat Command

Although largely replaced by newer tools, netstat remains widely used.

Example

netstat -tuln

Example Output

TCP 0.0.0.0:80 LISTEN
TCP 0.0.0.0:443 LISTEN

What It Shows

โœ”๏ธ Active Connections

โœ”๏ธ Listening Ports

โœ”๏ธ Routing Tables

โœ”๏ธ Network Statistics

Why It Matters

When a website is inaccessible, verifying listening ports is critical.


โšก 7. ss Command

The modern replacement for netstat is ss.

Example

ss -tulnp

Output

LISTEN 0 128 *:80

Advantages

โœ”๏ธ Faster Performance

โœ”๏ธ Better Scalability

โœ”๏ธ Improved Filtering

In large cloud environments, ss handles thousands of connections efficiently.


๐ŸŒ 8. curl Command

The curl command is one of the most powerful networking tools available.

Example

curl https://api.example.com

What It Can Do

โœ”๏ธ Test REST APIs

โœ”๏ธ Download Files

โœ”๏ธ Verify HTTPS Endpoints

โœ”๏ธ Debug Application Responses

Check HTTP Headers

curl -I https://example.com

Example Output

HTTP/1.1 200 OK

A favorite tool among backend developers and DevOps engineers.


๐Ÿ“ฅ 9. wget Command

The wget utility is primarily used for downloading content.

Example

wget https://example.com/file.zip

Common Uses

โœ… Software Installation

โœ… Script Automation

โœ… Backup Downloads

โœ… Repository Synchronization


๐Ÿท๏ธ 10. host Command

The host command provides quick DNS lookups.

Example

host google.com

Output

google.com has address
142.250.x.x

A lightweight alternative to:

โœ”๏ธ dig

โœ”๏ธ nslookup


๐Ÿ”— 11. arp Command

ARP (Address Resolution Protocol) maps IP addresses to MAC addresses.

Example

arp -a

Output

192.168.1.10 at
00:11:22:33:44:55

Why It Matters

Useful for identifying:

โœ… Duplicate IP Addresses

โœ… Local Network Issues

โœ… Device Connectivity Problems


๐Ÿ”ฌ 12. tcpdump Command

When deep packet analysis is required, engineers use tcpdump.

Example

tcpdump -i eth0

Captures packets traversing a network interface.


Capture HTTP Traffic

tcpdump port 80

Real-World Use Cases

โœ… API Debugging

โœ… Security Investigations

โœ… Packet Analysis

โœ… Protocol Troubleshooting

Think of tcpdump as a network microscope.


๐Ÿ” 13. nmap Command

The nmap utility is widely used for network discovery and security assessments.

Example

nmap 192.168.1.10

Output

80/tcp open
443/tcp open

What It Helps Identify

โœ”๏ธ Open Ports

โœ”๏ธ Running Services

โœ”๏ธ Network Devices

โœ”๏ธ Security Vulnerabilities


๐Ÿ›ค๏ธ 14. route Command

Although largely replaced by the ip command, route remains useful.

Example

route -n

This displays routing information used by the operating system.

Common Uses

โœ… Route Verification

โœ… Gateway Troubleshooting

โœ… Cloud Networking Analysis


๐Ÿ“ˆ 15. mtr Command

The mtr command combines:

โœ”๏ธ ping

โœ”๏ธ traceroute

into a single diagnostic tool.

Example

mtr google.com

Benefits

Provides real-time:

โœ… Packet Loss Statistics

โœ… Latency Analysis

โœ… Route Visibility

Many SRE teams rely on MTR during incident response.


๐Ÿ“‹ Essential Networking Commands Cheat Sheet

Command Purpose
ip Interface and routing management
ping Connectivity testing
traceroute Path analysis
nslookup DNS lookup
dig Advanced DNS diagnostics
ss Socket statistics
netstat Network statistics
curl API and HTTP testing
wget File downloads
host DNS lookup
arp IP-to-MAC mapping
tcpdump Packet capture
nmap Port scanning
route Route inspection
mtr Combined ping and traceroute

โ˜๏ธ Linux Networking in Cloud & DevOps Environments

Today's engineers rarely work with standalone servers.

Instead, they manage:

โœ… AWS

โœ… Azure

โœ… Google Cloud

โœ… Kubernetes Clusters

โœ… Docker Containers

Modern Traffic Flow

User
 โ†“
Load Balancer
 โ†“
Ingress Controller
 โ†“
Kubernetes Service
 โ†“
Application Pod

A failure at any layer can impact availability.

This is why networking skills are a critical component of modern DevOps and Multi-Cloud with AI environments.


๐Ÿ“Š Networking Commands and Data Analytics Workloads

Large-scale analytics systems rely heavily on networking.

Examples include:

โœ… Hadoop Clusters

โœ… Spark Environments

โœ… Data Warehouses

โœ… Streaming Platforms

Network bottlenecks can dramatically affect performance.

Engineers frequently use networking tools to diagnose distributed system issues.


๐Ÿค– Networking in the Era of Generative AI & Agentic AI

Modern AI systems rely on:

โœ… Distributed Model Serving

โœ… API Communication

โœ… Vector Databases

โœ… Multi-Cloud Deployments

โœ… GPU Clusters

Example AI Workflow

User Query
      โ†“
API Gateway
      โ†“
LLM Service
      โ†“
Vector Database
      โ†“
Response Generation

Every component depends on reliable network communication.

Networking commands help diagnose:

โœ”๏ธ Latency Issues

โœ”๏ธ DNS Failures

โœ”๏ธ Packet Loss

โœ”๏ธ Service Connectivity Problems


๐Ÿ’ก Best Practices for Network Troubleshooting

Experienced engineers follow a systematic methodology.

โœ… Step 1: Verify Connectivity

ping target-server

โœ… Step 2: Check DNS Resolution

dig domain.com

โœ… Step 3: Verify Routes

ip route

โœ… Step 4: Confirm Port Accessibility

ss -tulnp

โœ… Step 5: Analyze Packets

tcpdump

This structured approach significantly reduces troubleshooting time.


๐ŸŽค Common Interview Questions

โ“ What is the difference between ping and traceroute?

โœ… Ping checks connectivity and latency.

โœ… Traceroute identifies the route packets take.


โ“ Why is ss preferred over netstat?

โœ… Faster

โœ… More Efficient

โœ… Better for Modern Linux Systems


โ“ What is tcpdump used for?

โœ… Packet Capture

โœ… Security Analysis

โœ… Protocol Troubleshooting


โ“ Which command is best for DNS troubleshooting?

โœ… dig

because it provides the most detailed DNS information.


โ“ How do you check open ports on Linux?

ss -tulnp

or

netstat -tuln


๐ŸŽฏ Final Thoughts

Networking is one of the most critical skills in modern engineering.

Whether you're:

โœ… Managing Linux Servers

โœ… Troubleshooting Cloud Applications

โœ… Operating Kubernetes Clusters

โœ… Building AI-Powered Systems

โœ… Working in DevOps

understanding network behavior is essential.

Commands such as:

โœ”๏ธ ip

โœ”๏ธ ping

โœ”๏ธ traceroute

โœ”๏ธ dig

โœ”๏ธ ss

โœ”๏ธ curl

โœ”๏ธ tcpdump

โœ”๏ธ nmap

provide deep visibility into how systems communicate and where failures occur.

๐Ÿš€ The most effective engineers aren't those who memorize commandsโ€”they're the ones who understand when and why to use them. Mastering these Linux networking tools will dramatically improve your ability to diagnose problems, optimize performance, and maintain reliable production systems.

As infrastructure continues evolving toward cloud-native architectures, distributed computing, and AI-driven platforms, Linux networking expertise remains one of the most valuable technical skills an engineer can possess.

Source: