|
|
|
|
|
by veritgo
5560 days ago
|
|
ifconfig is deprecated, so probably a good idea to get out of that habit. Particularly if you are using it in scripts. 'ip addr' should give you all the information that 'ifconfig' does. You can also make the output a little less chatty by doing 'ip -o -4 addr' to get IPv4 addresses on one line per interface, or 'ip -o -0 addr' to get MAC addresses displayed similarly. This can make awking / cutting for addresses to use in scripts a little more elegant. |
|
Commands I use regularly instead of using ifconfig:
Edit: I fail at formatting