Difference between revisions of "Linux command: ip"

From RHS Wiki
Jump to navigation Jump to search
(Created page with "====== List MAC addresses ====== <syntaxhighlight lang="bash"> ip -o link | awk '$2 != "lo:" {print $2, $(NF-2)}' # find /sys/class/net -mindepth 1 -maxdepth 1 ! -name lo -p...")
Tag: visualeditor
 
(No difference)

Latest revision as of 08:15, 13 January 2020

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 \;