6 powerful Linux commands to solve your network issue in minutes

Stands for "interface configuration." It is used to view and configure network interfaces. However, it's considered deprecated in many Linux distributions.

ifconfig command


It sends ICMP echo requests to a specified destination and waits for ICMP echo replies. It's commonly used to check if a remote host is reachable and to measure round-trip time.

ping command


Stands for "name server lookup." It is a command-line tool used to query DNS servers to obtain domain name or IP address information.

nslookup command


It is a powerful command-line tool for configuring network interfaces, routing, and tunnels. It replaces several older networking commands, including ifconfig, route, and arp.

ip command


ss: Provides detailed information about socket connections, including listening ports and established connections.

ss command


It is a robust command-line packet analyzer tool. It provides detailed insights into network packets, facilitating network troubleshooting, monitoring, and security analysis.

tcpdump command