Guys explain me ip a vs ifconfig. when use one when use other. what big diference between them. who can use ifconfig vs ip a.
Instructor @T. Lee please.
Instructor @T. Lee please.
I could not understand well but thank Mr, @Rick ButlerHeh - this came up in the Linux+ TTT, I think on Monday, actually.
Simply, ifconfig is part of the old net-tools package and has pretty much gone deprecated, although both tools pretty much do the same thing. There some distros that won't even install it now by default. For those using Linux for a while, we're all used to using ifconfig, having developed the habit (@Lee McWhorter calls it 'muscle memory'). The newer tool is ip a.
I think these days, instructors should be using "ip a" as the primary tool. Using ifconfig should probably be mentioned since it's still out there and a lot of documentation, tutorials, and such. The Linux+ exam still has it on the list under Objective 1.5, so it is still testable material. But if you're teaching for proficiency and practical application, I would really make a point to get out of the habit of using ifconfig.
/r
Apple isn't Linux and the kernel is very different. That's why ifconfig is used.I look at that apple uses ifconfig (if I am correct)(so it helps to transition to other OS's without having to remember more commands or search for them). With linux "ip" is to be more robust but it is the same as ifconfig and it would depend on what commands a distro will take. So I do both in class. With ICMP (Internet Message Control Protocol) any commands like these just help with the health status/checks of devices.