Skip to content

Instantly share code, notes, and snippets.

@plembo
Last active March 29, 2024 17:49
Show Gist options
  • Save plembo/77ca0d5d031d86c3034d49ac463eeedd to your computer and use it in GitHub Desktop.
Save plembo/77ca0d5d031d86c3034d49ac463eeedd to your computer and use it in GitHub Desktop.
Find a predictable device name

Find a predictable device name

One-liner to find the Linux systemd "predictable name" of a hardware network device like the embedded ethernet card on a desktop motherboard.

udevadm test-builtin net_id /sys/class/net/eth0 | grep '^ID_NET_NAME_'

Answer by "GnP" in this post.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment