0

Below is the machine:

$ uname -a
Darwin whatever 18.7.0 Darwin Kernel Version 18.7.0: Sun Dec  1 18:59:03 PST 2019; root:xnu-4903.278.19~1/RELEASE_X86_64 x86_64
$

In ubuntu, ip addr or ip a gives list of all interfaces.

What is the similar command in mac?

jesse_b
  • 37,005
overexchange
  • 1,536

2 Answers2

1

ifconfig is probably the tool you're looking for.

You can also use:

networksetup -listallhardwareports

Although this won't give as much detail

jesse_b
  • 37,005
0

If you want a list of the interfaces you can use netstat -i

Chris Davies
  • 116,213
  • 16
  • 160
  • 287