apt install ifconfig
创建于:2025年5月28日
创建于:2025年5月28日
apt install ifconfig
The command you're referring to, apt install ifconfig
, is intended to install the ifconfig
utility on a Debian-based Linux system (like Ubuntu). However, ifconfig
is part of the net-tools
package, so the correct command is:
bashsudo apt update sudo apt install net-tools
sudo apt update
: Updates your package list to ensure you’re getting the latest version.sudo apt install net-tools
: Installs the package that includes ifconfig
.After installation, you can verify it by running:
bashifconfig
If you're using a more modern setup, consider using ip
instead of ifconfig
, as it is the more current tool for network configuration:
baship address