interface renaming (was: Re: Moving towards NetworkManager)
Ralf Mardorf
silver.bullet at zoho.com
Sat Jul 30 17:48:48 UTC 2016
On Sun, 31 Jul 2016 00:08:37 +1000, Karl Auer wrote:
> kauer at kt:~$ ifconfig | grep encap | cut -d\ -f1
> eth0
> lo
> wlan0
Nice, with
ifconfig|cut -d: -f1|head -1
I could replace
basename $(ls -d /sys/class/net/enp?s0)
if I should need it again for a script.
[rocketmouse at archlinux ~]$ ifconfig|cut -d: -f1|head -1
enp3s0
[rocketmouse at archlinux ~]$ basename $(ls -d /sys/class/net/enp?s0)
enp3s0
More information about the ubuntu-users
mailing list