5 ms·
While I agree that different defaults might be nice, modern versions of ip support a -br[ief] option which is pretty nice: $ ip -br a lo UNKN
by tene 7y ago
While I agree that different defaults might be nice, modern versions of ip support a -br[ief] option which is pretty nice:
$ ip -br a
lo UNKNOWN 127.0.0.1/8 ::1/128
eth0 UP 10.123.45.67/24 fe80::7ed3:aff:fe51:4612/64
$ ip -br l
lo UNKNOWN 00:00:00:00:00:00 <LOOPBACK,UP,LOWER_UP>
eth0 UP 7c:d3:0a:51:46:12 <BROADCAST,MULTICAST,UP,LOWER_UP>
- jandrese 7y ago'ip -br a' get real messy if you have IP6 unfortunately. IPv6 hosts like to make lots and lots of addresses, which all get smooshed together on a single line of hard-on-the-eyeballs hex noise.
- gerdesj 7y agoWell yes but come on daddyo (I'm a granddad btw), who still routinely uses an 80 column terminal these days 8) Besides, you can always feed the output to awk for an easier on the eyes report. I have three IPv6 including the link local address on my wlp2s0 and they all fit on one line with the IPv4. I've just run up the manual and the kool kids could be using 'ip --json --pretty address' or 'ip -j a | jq'
- yrro 7y agoAdding 'scope global' to 'ip a' cuts down on some of the usually uninteresting addresses. More typing though.