Linux · Networking interview questions

75 Linux · Networking questions from the System Administration bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.

Free to start: the 2-minute IT readiness check — six questions and a result.

Take the free IT readiness check

or take a mock interview set up for this area

1. What does ss -tulpn do?

Junior
  1. A.list listening TCP/UDP ports with their owning process PIDs
  2. B.capture and inspect network packets on an interface
  3. C.show or change NIC settings like speed and duplex
  4. D.show the network hops to a destination

Answer + AI explanation with Pro

2. Which command will list listening TCP/UDP ports with their owning process PIDs?

Junior
  1. A.traceroute host
  2. B.ping -c 4 host
  3. C.ss -tulpn
  4. D.ip -s link

Answer + AI explanation with Pro

3. Which statement is correct?

Junior
  1. A.ss -tulpn — show interface statistics including dropped packets
  2. B.ss -tulpn — fetch only the HTTP response headers from a URL
  3. C.ss -tulpn — persistently open HTTPS in firewalld (apply after --reload)
  4. D.ss -tulpn — list listening TCP/UDP ports with their owning process PIDs

Answer + AI explanation with Pro

4. What does ip addr do?

Junior
  1. A.show the network hops to a destination
  2. B.capture and inspect network packets on an interface
  3. C.show network interfaces and their IP addresses
  4. D.apply firewalld's permanent config without dropping connections

Answer + AI explanation with Pro

5. Which command will show network interfaces and their IP addresses?

Junior
  1. A.dig
  2. B.ip addr
  3. C.curl -I url
  4. D.ss -tulpn

Answer + AI explanation with Pro

6. Which statement is correct?

Junior
  1. A.ip addr — show network interfaces and their IP addresses
  2. B.ip addr — list NetworkManager connection profiles
  3. C.ip addr — send 4 ICMP echo requests to test reachability
  4. D.ip addr — resolve a hostname to its IP using DNS

Answer + AI explanation with Pro

7. What does ip route do?

Junior
  1. A.show the active rules of the default firewalld zone
  2. B.show the kernel routing table
  3. C.activate a NetworkManager connection profile
  4. D.show or change NIC settings like speed and duplex

Answer + AI explanation with Pro

8. Which command will show the kernel routing table?

Junior
  1. A.host example.com
  2. B.dig
  3. C.ss -tulpn
  4. D.ip route

Answer + AI explanation with Pro

9. Which statement is correct?

Junior
  1. A.ip route — fetch only the HTTP response headers from a URL
  2. B.ip route — show the kernel routing table
  3. C.ip route — activate a NetworkManager connection profile
  4. D.ip route — show interface statistics including dropped packets

Answer + AI explanation with Pro

10. What does ip link set eth0 up do?

Junior
  1. A.show the kernel routing table
  2. B.resolve a hostname to its IP using DNS
  3. C.show or change NIC settings like speed and duplex
  4. D.bring the network interface eth0 up

Answer + AI explanation with Pro

11. Which command will bring the network interface eth0 up?

Junior
  1. A.tcpdump
  2. B.ip link set eth0 up
  3. C.firewall-cmd --reload
  4. D.curl -I url

Answer + AI explanation with Pro

12. Which statement is correct?

Junior
  1. A.ip link set eth0 up — bring the network interface eth0 up
  2. B.ip link set eth0 up — capture and inspect network packets on an interface
  3. C.ip link set eth0 up — list listening TCP/UDP ports with their owning process PIDs
  4. D.ip link set eth0 up — show or change NIC settings like speed and duplex

Answer + AI explanation with Pro

13. What does nmcli con show do?

Mid
  1. A.query DNS records from the command line
  2. B.show the kernel routing table
  3. C.list NetworkManager connection profiles
  4. D.show network interfaces and their IP addresses

Answer + AI explanation with Pro

14. Which command will list NetworkManager connection profiles?

Mid
  1. A.ip link set eth0 up
  2. B.nmcli con show
  3. C.ip -s link
  4. D.firewall-cmd --reload

Answer + AI explanation with Pro

15. Which statement is correct?

Mid
  1. A.nmcli con show — capture and inspect network packets on an interface
  2. B.nmcli con show — apply firewalld's permanent config without dropping connections
  3. C.nmcli con show — list NetworkManager connection profiles
  4. D.nmcli con show — persistently open HTTPS in firewalld (apply after --reload)

Answer + AI explanation with Pro

16. What does firewall-cmd --permanent --add-service=https do?

Mid
  1. A.persistently open HTTPS in firewalld (apply after --reload)
  2. B.show network interfaces and their IP addresses
  3. C.list NetworkManager connection profiles
  4. D.show interface statistics including dropped packets

Answer + AI explanation with Pro

17. Which command will persistently open HTTPS in firewalld (apply after --reload)?

Mid
  1. A.ethtool eth0
  2. B.curl -I url
  3. C.firewall-cmd --permanent --add-service=https
  4. D.nmcli con up <name>

Answer + AI explanation with Pro

18. Which statement is correct?

Mid
  1. A.firewall-cmd --permanent --add-service=https — resolve a hostname to its IP using DNS
  2. B.firewall-cmd --permanent --add-service=https — persistently open HTTPS in firewalld (apply after --reload)
  3. C.firewall-cmd --permanent --add-service=https — list NetworkManager connection profiles
  4. D.firewall-cmd --permanent --add-service=https — activate a NetworkManager connection profile

Answer + AI explanation with Pro

19. What does firewall-cmd --reload do?

Mid
  1. A.query DNS records from the command line
  2. B.apply firewalld's permanent config without dropping connections
  3. C.show the network hops to a destination
  4. D.show network interfaces and their IP addresses

Answer + AI explanation with Pro

20. Which command will apply firewalld's permanent config without dropping connections?

Mid
  1. A.ping -c 4 host
  2. B.firewall-cmd --reload
  3. C.curl -I url
  4. D.ip addr

Answer + AI explanation with Pro

21. Which statement is correct?

Mid
  1. A.firewall-cmd --reload — send 4 ICMP echo requests to test reachability
  2. B.firewall-cmd --reload — apply firewalld's permanent config without dropping connections
  3. C.firewall-cmd --reload — list listening TCP/UDP ports with their owning process PIDs
  4. D.firewall-cmd --reload — resolve a hostname to its IP using DNS

Answer + AI explanation with Pro

22. What does dig do?

Junior
  1. A.persistently open HTTPS in firewalld (apply after --reload)
  2. B.show the kernel routing table
  3. C.query DNS records from the command line
  4. D.show the active rules of the default firewalld zone

Answer + AI explanation with Pro

23. Which command will query DNS records from the command line?

Junior
  1. A.dig
  2. B.firewall-cmd --permanent --add-service=https
  3. C.firewall-cmd --reload
  4. D.ping -c 4 host

Answer + AI explanation with Pro

24. Which statement is correct?

Junior
  1. A.dig — show network interfaces and their IP addresses
  2. B.dig — persistently open HTTPS in firewalld (apply after --reload)
  3. C.dig — show the kernel routing table
  4. D.dig — query DNS records from the command line

Answer + AI explanation with Pro

25. What does tcpdump do?

Mid
  1. A.show or change NIC settings like speed and duplex
  2. B.capture and inspect network packets on an interface
  3. C.resolve a hostname to its IP using DNS
  4. D.persistently open HTTPS in firewalld (apply after --reload)

Answer + AI explanation with Pro

26. Which command will capture and inspect network packets on an interface?

Mid
  1. A.ip addr
  2. B.tcpdump
  3. C.curl -I url
  4. D.ip link set eth0 up

Answer + AI explanation with Pro

27. Which statement is correct?

Mid
  1. A.tcpdump — show interface statistics including dropped packets
  2. B.tcpdump — show the active rules of the default firewalld zone
  3. C.tcpdump — show network interfaces and their IP addresses
  4. D.tcpdump — capture and inspect network packets on an interface

Answer + AI explanation with Pro

28. What is /etc/resolv.conf?

Junior
  1. A.a kernel check (rp_filter) that drops packets arriving on the wrong interface
  2. B.the file listing the DNS nameservers the system uses
  3. C.dropped connections when the netfilter connection-tracking table fills
  4. D.serving different DNS answers to internal vs external clients

Answer + AI explanation with Pro

29. Which term means: "the file listing the DNS nameservers the system uses"?

Junior
  1. A.firewalld default zone
  2. B./etc/resolv.conf
  3. C.split-horizon DNS
  4. D.NIC bonding mode 4

Answer + AI explanation with Pro

30. Which statement is correct?

Junior
  1. A./etc/resolv.conf — the file mapping static hostnames to IP addresses, checked before DNS
  2. B./etc/resolv.conf — 802.3ad LACP link aggregation for bandwidth and failover
  3. C./etc/resolv.conf — dropped connections when the netfilter connection-tracking table fills
  4. D./etc/resolv.conf — the file listing the DNS nameservers the system uses

Answer + AI explanation with Pro

Showing 30 of 75 Linux · Networking questions — the full set, with answers, explanations and an AI tutor on every question, is inside.

Free to start

Start with a free readiness check

Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Linux · Networking question come with Pro.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers