Hi,
When I type ifconfig in CentOS 7 the output shows "ether" for the MAC address but I want it to show as "HWaddr" instead of "ether".
Kindly suggest me the way to modify the output of ifconfig command.
Regards,
Charan
Changing ether to hwaddr
Re: Changing ether to hwaddr
ifconfig | sed 's\ether\HWaddr\g'
Re: Changing ether to hwaddr
ifconfig has been deprecated for more than 10 years. Its replacement is the ip command, specifically ip link show or ip addr show.
Neither uses HWAddr.
Neither uses HWAddr.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
-
- Posts: 3
- Joined: 2019/04/27 07:43:03
Re: Changing ether to hwaddr
Yes I agree, but ifconfig is hardcoded in our application and in CentOS 6 the output shows HWaddr, we want the same to be shown in CentOS 7 also
Re: Changing ether to hwaddr
Then the solution is the one involving sed that was already posted.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke