I've just installed Ubuntu 18.04 and selected "minimal install". I then tried to run ifconfig
in the terminal and got the following message
-bash: ifconfig: command not found
How come the net-tools
package is not installed by default any more?
ifconfig
is deprecated, and has been so for quite a number of years. The new kid in town is theip
command, which can configure IP's, routes, and everything associated with networks.You can install
ifconfig
withsudo apt install net-tools
, if you absolutely need to have it. If not, start learningip
.In short, it is removed because you should not use it. It has mediocre IPv6 support, the
ip
command is a better replacement. I find sources saying ifconfig was deprecated back in 2012, so I'm not surprised it's finally removed.You may be able to install it on 18.04, but on future releases it may disappear entirely. I would consider it not being installed by default as a warning shot: learn
ip
.Thus
ifconfig
is probably in a special class. In previous versions of Ubuntu it was included in minimal installs. It is now being phased out, and you explicitly have to install it. This can not be taken to indicate that any other packages are missing.as addition to @vidarlo answer, you can put
alias ifconfig='ip -c a'
to.bash_aliases
if you have typing habit.This makes the copying of IP addies simpler:
(otherwise that subnet slash prevents doubleclick->select of only the IP)
I had to do:
I guess that the second line be optional.
My runtime system:
Operating System: Ubuntu 18.04