4 ms·
A single \n would improve ip link/addr. There is no easy way to visual grep the right interface. ifconfig is much better in this regard, but has obvious downsid
by gsich 2y ago
A single \n would improve ip link/addr. There is no easy way to visual grep the right interface. ifconfig is much better in this regard, but has obvious downsides.
- nottorp 2y agoBut... you have to use systemd tools to parse the output these days. Why are you even looking at this with the naked eye?
- gsich 2y agoI would gladly switch to a systemd command. What should I use?
- topspin 2y ago> Why are you even looking at this with the naked eye? My first instinct was to answer your question with a question. I'll avoid that. In the real world of devops, whatever you might have in mind as not "naked eye," fails. Deeply isolated systems, embedded systems, development environments, headless systems, virtualized systems, etc., don't have working GUIs, complex input devices or other high fidelity tools. You get a terminal. The terminal tools are the ground truth when all else has failed. They need to work. And when they work in a usable manner they're wonderful: you can deal with complex tasks and issues over absurdly slow connections, tunneled and bounced through a endless chain of hosts, with no client side capability beyond a terminal emulator. This is one of the key benefits of the UNIX legacy and a reason it has proliferated to nearly every application. Having answered your question directly, I'll ask mine: what, pray tell, do you recommend that meets every requirement stated or implied above?
- nottorp 2y agoYeah, I keep forgetting HN needs explicit sarcasm tags.
- hinkley 2y agoPeople knew sarcasm doesn’t translate on the internet a decade before Poe’s Law was named.
- hinkley 2y agoAlso the point of the article is that all of this stuff used to work just fine. Abandoning tools people used just fine for decades is a cop out wrt to the context of this conversation.