Junior — Middle
Can you name the main network commands used in Linux for diagnostics and network configuration?
sobes.tech AI
Answer from AI
Main network commands in Linux for diagnostics and network configuration:
ifconfig— view and configure network interfaces (deprecated, replaced byip).ip— modern command for managing network interfaces, routes, addresses.ping— check the availability of a remote host over the network.traceroute— determine the route to a remote node.netstat— display network connections, routing tables, statistics.ss— modern alternative tonetstatfor viewing sockets.digandnslookup— DNS queries for diagnostics.route— view and modify the routing table.ethtool— view and configure network interface parameters.tcpdump— capture and analyze network traffic.
Example of using ip to view interfaces:
ip addr show
To check host availability:
ping 8.8.8.8