LINUX NETWORKING
Linux networking commands are used extensively to inspect, analyze, maintain, and troubleshoot networks connected to the system server.
Despite being busy, I managed to cover five essential command lines. Since I use the Ubuntu distribution, I first installed net-tools. Note that if you use Kali Linux, net-tools usually come preinstalled.
Here are the commands I learned:
ifconfig
(Interface Configurator): used to configure network interfaces.ip a
(orip addr show
): displays IP addresses and interface information.ip link show
: shows the state of network interfaces.ip -s link show
: displays interface statistics, including traffic information.ip route
: displays and modifies the IP routing table.
These commands are crucial for network administration and troubleshooting.
Top comments (3)
There is no need to learn ifconfig as it is deprecated on Linux and ip is its successor. The newer ip command includes basically everything ifconfig, arp and the net-tools suite did in a single command with a modern address notation. If you are on ubuntu may be take a look in NetworkManager and nmcli, those are somewhat on a higher level and are typacilly used to inspect on configure (persistent) network configuration.
yes, that's true, IP is more versatile and technically more efficient than ifconfig. I'm actually focusing more on Ip as its designed for modern network.
yes that's true, IP is more versatile and technically more efficient than ifconfig. I'm actually focusing more on Ip as its designed for modern network.