apt install ifconfig

생성일: 2025년 5월 28일

답변에 사용된 모델 GPT-4o by Chat01

질문

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:

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

이 Q&A 공유하기