Basic Network Management Commands in Linux
Introduction
Networking is one of the most critical parts of system administration. Linux provides several built-in commands to check connectivity, troubleshoot issues, and monitor the network.
Step 1: Check Network Interfaces (ip addr)
The ip addr command shows all available network interfaces and their IP addresses.
ip addr
➡️ Look for inet to find IPv4 addresses and inet6 for IPv6.
Step 2: Test Connectivity with Ping
The ping command checks if a remote server or device is reachable.
ping google.com
➡️ Press CTRL+C to stop pinging.
Step 3: Trace Route to a Host (traceroute)
The traceroute command shows the path packets take to reach a destination.
traceroute google.com
➡️ Helps identify network delays or routing issues.
Step 4: Check Open Ports (netstat / ss)
The ss command is used to list open ports and active connections.
ss -tuln
➡️ Shows listening services and their ports.
Step 5: Download Files from the Internet (wget / curl)
Linux provides tools like wget and curl to download files.
wget http://example.com/file.zip
➡️ Useful for quickly fetching files or testing URLs.
Conclusion
By mastering these commands, you can troubleshoot most basic networking problems in Linux. In the next post, we will explore user and group management commands to handle system accounts.

Comments
Post a Comment