Iproute2 is the new way towards. It did fix quite a few issues and has many more features - it'd really recommend learning it. https://wiki.linuxfoundation.org/networking/iproute2
My friend had told me it was "ip", which I tried, but I found the output from ifconfig nicer for the occasions that i use it.
There are lots of flags controlling what it outputs, so have a look, there's likely a way to adjust it. Or alternatively, ip supports "-json" so you can process it however you want, or write wrappers.
Re:Deprecating scp
by UI_at_80x24 on Friday November 06, 2020 @08:49AM
(#25007553)
Only on linux systems (around the same time as systemd was adopted). Thankfully the BSD's have kept ifconfig.
Another revelation for me from the article - ifconfig is deprecated? I did not get that memo.