ifconfig belong to net-tools.
net-tools have been removed in Ubuntu 18.04.
so, we need to install net-tools by hand.
Notice! You should be choose net-tools of Ubuntu 16.04 version, because the output format of ifconfig in Ubuntu 16.04 is different from that of Ubuntu 18.04.
).
download link: https://pkgs.org/download/net-tools
sudo dpkg -i net-tools_1.60-26ubuntu1_and64.deb
Why blog in English?
Because l’m in ubuntu without pinyin now… emmmmmmm