apt install ifconfig

Créé le : 28 mai 2025

Répondu en utilisant GPT-4o par Chat01

Question

apt install ifconfig

Réponse

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:

bash
sudo apt update sudo apt install net-tools

Explanation:

  • 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:

bash
ifconfig

If you're using a more modern setup, consider using ip instead of ifconfig, as it is the more current tool for network configuration:

bash
ip address

Partager cette Q&R