|
|
Subscribe / Log in / New account

Moving on from net-tools

Moving on from net-tools

Posted Jan 5, 2017 0:20 UTC (Thu) by Kayden (guest, #89093)
Parent article: Moving on from net-tools

I don't know why, but I've always found the output of "ifconfig" to be more readable than "ip addr" or "ip link". The indentation and whitespace makes it easy to see your interfaces at a glance. Your IP address is right there, too. The "ip" output just seems more...jumbled. I know, it's pretty subjective.

Arch Linux hasn't installed net-tools by default for a long time, but I always find myself installing it, mostly for that reason.


to post comments

Moving on from net-tools

Posted Jan 5, 2017 14:18 UTC (Thu) by xav (guest, #18536) [Link] (8 responses)

Try "ip -c addr" and "ip -c link". I find them way more readable.

Moving on from net-tools

Posted Jan 5, 2017 16:18 UTC (Thu) by Kayden (guest, #89093) [Link]

That does help! Thanks :)

Moving on from net-tools

Posted Jan 6, 2017 10:41 UTC (Fri) by tsr2 (subscriber, #4293) [Link] (2 responses)

$ ip -c addr
Option "-c" is unknown, try "ip -help".

Moving on from net-tools

Posted Jan 6, 2017 10:43 UTC (Fri) by xav (guest, #18536) [Link] (1 responses)

$ ip -V
ip utility, iproute2-ss161212

Moving on from net-tools

Posted Jan 7, 2017 11:14 UTC (Sat) by ghane (guest, #1805) [Link]

Works for me on Ubuntu 17.04 (pre-release)

$ ip -V
ip utility, iproute2-ss151103

Moving on from net-tools

Posted Jan 6, 2017 11:29 UTC (Fri) by Yenya (subscriber, #52846) [Link] (3 responses)

Interesting, thanks!

How can I adjust the colors to terminals with black background? (I.e. something similar to what echo 'set bg=dark' >> ~/.vimrc does for vim).

Moving on from net-tools

Posted Jan 6, 2017 11:58 UTC (Fri) by xav (guest, #18536) [Link]

Really I have no idea. But if you do please tell !

Moving on from net-tools

Posted Jan 10, 2017 16:53 UTC (Tue) by nix (subscriber, #2304) [Link]

As far as I can see, you hack lib/color.c in the iproute2 source code :(

Moving on from net-tools

Posted Mar 6, 2017 8:49 UTC (Mon) by pevik (subscriber, #112535) [Link]

See recently merged patch https://git.kernel.org/cgit/linux/kernel/git/shemminger/iproute2.git/commit/?id=54eab4c79a6086f4d1e15ce228163514d2d2415b. Try it:
COLORFGBG='15;0' ip -c a
Konsole, rxvt and rxvt-unicode set environment variable COLORFGBG out of box. For others (gnome-terminal, xterm) you have to set it manually or with a help with xtermcontrol.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds