Linux command: ip
Jump to navigation
Jump to search
List MAC addresses[edit]
ip -o link | awk '$2 != "lo:" {print $2, $(NF-2)}'
# find /sys/class/net -mindepth 1 -maxdepth 1 ! -name lo -printf "%P: " -execdir cat {}/address \;