@devops_tech
Rakesh Jain
1 month
Top 20 Linux networking commands explained with examples! A Thread 👇
Tweet media one
2
35
215

Replies

@devops_tech
Rakesh Jain
1 month
1⃣ ifconfig: Displays network interface configuration. For example, ifconfig eth0 shows the configuration details of the Ethernet interface. #LinuxNetworkingExample
1
0
3
@devops_tech
Rakesh Jain
1 month
2⃣ ip: Versatile command to manage network interfaces, addresses, and routes. For instance, ip addr show displays IP addresses assigned to all interfaces. #LinuxNetworkingExample
1
0
0
@devops_tech
Rakesh Jain
1 month
3⃣ ping: Checks connectivity to a host by sending ICMP echo requests. E.g., ping http://google[dot]com verifies if you can reach Google's servers. #LinuxNetworkingExample
1
0
3
@devops_tech
Rakesh Jain
1 month
4⃣ traceroute: Determines the path packets take to reach a destination. Example: traceroute http://google[dot]com shows the network hops to Google. #LinuxNetworkingExample
1
0
1
@devops_tech
Rakesh Jain
1 month
5⃣ netstat: Shows network connections, open ports, and routing table. netstat -tuln displays listening TCP/UDP ports. #LinuxNetworkingExample
1
0
1
@devops_tech
Rakesh Jain
1 month
6⃣ ss: Similar to netstat, provides socket-level details. For eg. ss -tunap to view all TCP and UDP sockets with associated processes. #LinuxNetworkingExample
1
1
2
@devops_tech
Rakesh Jain
1 month
7⃣ route: Manages IP routing table. Example: route -n shows the routing table with network destinations and gateways. #LinuxNetworkingExample
1
0
1
@devops_tech
Rakesh Jain
1 month
8⃣ iptables: Powerful firewall tool. E.g., iptables -A INPUT -p tcp --dport 22 -j ACCEPT allows SSH traffic. #LinuxNetworkingExample
1
0
2
@devops_tech
Rakesh Jain
1 month
9⃣ tcpdump: Captures and analyzes network traffic. tcpdump -i eth0 port 80 captures HTTP traffic on the Ethernet interface. #LinuxNetworkingExample
1
0
2
@devops_tech
Rakesh Jain
1 month
🔟 nslookup: Queries DNS servers. nslookup http://google[dot]com retrieves the IP address of Google's domain. #LinuxNetworkingExample
1
0
2
@devops_tech
Rakesh Jain
1 month
1⃣ 1⃣ dig: Advanced DNS lookup utility. dig +trace http://example[dot]com performs a trace route for Example's domain. #LinuxNetworkingExample
1
0
1
@devops_tech
Rakesh Jain
1 month
1⃣2⃣ hostname: Displays or sets the system's hostname. hostname shows the current hostname. #LinuxNetworkingExample
1
0
1
@devops_tech
Rakesh Jain
1 month
1⃣3⃣ arp: Manages ARP cache. arp -a displays the ARP table with MAC and IP address mappings. #LinuxNetworkingExample
1
0
1
@devops_tech
Rakesh Jain
1 month
1⃣4⃣ ifup/ifdown: Activates or deactivates a network interface. E.g., ifdown eth0 disables the Ethernet interface. #LinuxNetworkingExample
1
0
2
@devops_tech
Rakesh Jain
1 month
1⃣5⃣ iwconfig: Configures wireless network interfaces. Example: iwconfig wlan0 essid "MyNetwork" sets the wireless network. #LinuxNetworkingExample
1
0
2
@devops_tech
Rakesh Jain
1 month
1⃣6⃣ netcat (nc): Versatile networking utility. nc -vz http://google[dot]com 80 checks if port 80 on Google is reachable. #LinuxNetworkingExample
1
0
2
@devops_tech
Rakesh Jain
1 month
1⃣7⃣ ssh: Connects to a remote machine securely. ssh user@hostname establishes an SSH session to the specified host. #LinuxNetworkingExample
1
0
2
@devops_tech
Rakesh Jain
1 month
1⃣8⃣ scp: Copies files securely between hosts. scp file.txt user@hostname:/destination transfers file.txt to a remote host. #LinuxNetworkingExample
1
0
2
@devops_tech
Rakesh Jain
1 month
1⃣9⃣ wget: Retrieves files from the web. E.g., wget https://example[dot]com/file[dot]zip downloads http://file[dot]zip from a URL. #LinuxNetworkingExample
1
0
2
@devops_tech
Rakesh Jain
1 month
2⃣0⃣ curl: Versatile tool for transferring data. curl https://api.example[dot]com fetches data from the specified URL. #LinuxNetworkingExample
1
0
2
@devops_tech
Rakesh Jain
1 month
Hope these examples help you understand these networking commands better! #Linux #Networking #SysAdmin
1
0
0
@devops_tech
Rakesh Jain
1 month
Repost the thread if you find it useful. Thanks! https://t.co/pw1ygTx5Ac
@devops_tech
Rakesh Jain
1 month
Top 20 Linux networking commands explained with examples! A Thread 👇
Tweet media one
0
2
2