ifconfig vs ip Command Explained for the Linux+ Exam
ifconfig — interface configuration — was the standard command for viewing and changing network settings on Unix-like systems for decades. It still works on macOS and on plenty of older Linux installations, but on modern Linux it has been deprecated in favour of the ip command , and that fact is itself an exam point. Learn ifconfig because you will meet it. Learn ip because it is what you should be using. On most current distributions ifconfig is not installed by default at all. It lives in the net-tools package, which is no longer maintained, and running it produces "command not found" on a clean Debian, Ubuntu, Fedora, or RHEL system. Reading the Output Running ifconfig with no arguments shows every active interface. The fields that matter: Interface name — eth0 or enp0s3 for wired, wlan0 or wlp2s0 for wireless, lo for loopback. Modern systems use predictable naming based on bus position rather than the old sequential names, which is why you see enp0s3 ...