Network configuration commands, firewall rules, and basic troubleshooting tools used on Linux systems.
35 cards · basic cards · AI-written, checked twice. Edit anything.
- What does the ifconfig command display?
Show answer
Network interface configuration, including IP address, netmask, and MAC address.
- What is the primary purpose of the ip command?
Show answer
To view and configure network interfaces, routes, and policies on Linux systems.
- What does the route command do?
Show answer
Displays and modifies the kernel routing table.
- What information does netstat display?
Show answer
Network connections, listening ports, routing tables, and network statistics.
- What is the ss command used for?
Show answer
To display socket statistics, including active connections and listening ports.
- What is the primary purpose of ping?
Show answer
To test connectivity and measure latency between the local host and a remote host.
- What does traceroute show?
Show answer
The network path taken by packets from the local host to a destination, including each intermediate hop.
- What is nslookup used for?
Show answer
To query DNS servers and resolve domain names to IP addresses.
- What does dig do?
Show answer
Performs DNS lookups and displays detailed DNS response information.
- What is iptables?
Show answer
A command-line firewall tool that configures packet filtering rules in the Linux kernel.
- What is firewalld?
Show answer
A dynamic firewall daemon that manages firewall rules using zones and services.
- What is ufw?
Show answer
Uncomplicated Firewall, a front-end to iptables designed to be easier to use.
- How do you view the current routing table using the ip command?
Show answer
Use: ip route show
- How do you add a default route using the route command?
Show answer
Use: route add default gw <gateway-ip>
- How do you remove a route using the route command?
Show answer
Use: route delete <destination> or route del <destination>