Linux Networking — Tools & Diagnostics — Concept Check
Questions on Linux Networking — Tools & Diagnostics. Diagnose and configure Linux networking with ip, ss, netstat, curl, dig, tcpdump, and iptables. These tools are essential for debugging connectivity issues, inspecting sockets, and tracing requests.
Questions in this quiz
8 questions on Linux Networking — Tools & Diagnostics — Concept Check. Work through them here, then start the quiz to answer them and see your score.
1.A developer notices that a service running on port 8080 is unreachable. Which command can help identify if the service is listening on that port?
- Aip route show
- Bss -tlnp | grep :8080
- Cdig google.com
- Dtcpdump -i eth0 port 8080
2.You need to capture all HTTP traffic on interface eth0 for analysis. Which command should you use?
- Atcpdump -i eth0 port 80 -w capture.pcap
- Bcurl -v https://example.com
- Cip addr show eth0
- Dss -tlnp
3.A server's DNS resolution is failing. Which command can help diagnose the DNS issue by querying Google's DNS server?
- Adig @8.8.8.8 google.com
- Bss -tnp state established
- Ctcpdump -i eth0 port 53
- Dip neigh show
4.A network administrator wants to see all established TCP connections on a server. Which command should they use?
- Aip addr show
- Bss -tnp state established
- Ccurl -I https://example.com
- Ddig +trace google.com
5.A developer needs to add a route for the 10.0.0.0/8 network via gateway 192.168.1.1. Which command should they use?
- Acurl -w "\nTime: %{time_total}s\n" -o /dev/null -s https://example.com
- Bss -tlnp
- Ctcpdump -i any host 192.168.1.50
- Dip route add 10.0.0.0/8 via 192.168.1.1
6.A service on your server is slow, and you suspect DNS issues. Which command can quickly show the IP address of 'example.com' without additional information?
- Ass -anp
- Bip link set eth0 up
- Ctcpdump -i eth0 -nn -X port 5432
- Ddig +short example.com
7.Which command would you use to bring the network interface 'eth0' down for maintenance?
- Acurl -H "Authorization: Bearer $TOKEN" https://api.example.com/data
- Bip link set eth0 down
- Cdig -x 8.8.8.8
- Dss -tlnp
8.A developer wants to check if port 443 on 'google.com' is reachable. Which command should they use?
- Anc -zv google.com 443
- Bdig google.com MX
- Ctcpdump -i eth0 port 443
- Dip route show