I'm studying for the LPIC-1 exam and I'm stuck understanding the following example of the command cut:
ifconfig enp3s0f2 produces the following result:
enp3s0f2: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ether 00:90:f5:e5:e4:7c txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
I then run the command
ifconfig enp3s0f2 | grep ether | cut -d " " -f 10 which displays this output, as I want to isolate the MAC address:
However, I only played around with the
-f parameter which has 10 as a value. I don't understand why it's 10 and not another number. I've looked at several pages with examples on how to use the cut command and the different arguments, but in this example, it doesn't make sense at all to me.
How to isolate this MAC address it should be the value 10 to be assigned to -f?