You could use apt-file search
to determine the command in which package. From my ubuntu16.04, it tells me to install iproute2
, I think 1804 similar.
1. Get what package need to be installed:
$ apt-file search --regexp 'bin/ip$'
iproute2: /bin/ip
iproute2: /sbin/ip
2. Install the package:
$ apt install -y iproute2
...
3. Verify the package is installed:
$ dpkg -l iproute2
ii iproute2 4.3.0-1ubuntu3 amd64 networking and traffic control tools
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…