Sysfs/network devices
From Gentoo Wiki
< Sysfs
Jump to:navigation
Jump to:search
ls -al 명령 또는 tree 명령(app-text/tree 꾸러미에 있음)으로 /sys/class/net 디렉터리를 확인하여 장치 이름을 가져옵니다:
user $
tree /sys/class/net
/sys/class/net/ ├── enp2s14 -> ../../devices/pci0000:00/0000:00:1e.0/0000:02:0e.0/net/enp2s14 ├── lo -> ../../devices/virtual/net/lo ├── sit0 -> ../../devices/virtual/net/sit0 └── wlp8s0 -> ../../devices/pci0000:00/0000:00:1c.0/0000:08:00.0/net/wlp8s0