After substantial research I still haven't found an answer to this query, how can I modify the command 'ifconfig' to show my computer's MAC address?
First, your computer doesn't have a MAC address. Your network card has a MAC address. So if you have a wireless card and an Ethernet card, you'll have two MAC addresses.
On Linux, either of these commands will show you the MACs of all network cards in your machine:
ifconfig | grep ether ip link
ifconfig is deprecated on Linux, so you should use
Instead of using
ifconfig, you can use
ip -brief link will show following output.
lo UNKNOWN 00:00:00:00:00:00 <LOOPBACK,UP,LOWER_UP> enp1s0 DOWN xx:6a:64:43:d5:xx <NO-CARRIER,BROADCAST,MULTICAST,UP> wlp2s0 UP xx:d1:6b:f2:03:xx <BROADCAST,MULTICAST,UP,LOWER_UP> docker0 UP xx:42:33:81:52:xx <BROADCAST,MULTICAST,UP,LOWER_UP> vethf34394f@if13 UP xx:79:65:3e:e0:xx <BROADCAST,MULTICAST,UP,LOWER_UP> phy0.mon UNKNOWN xx:d1:6b:f2:03:xx <BROADCAST,MULTICAST,UP,LOWER_UP>