Forrest logo
back to the ifconfig tool

ifconfig:tldr:461b4

ifconfig: Display details of all interfaces, including disabled interfaces.
$ ifconfig -a
try on your machine

The command "ifconfig -a" is used to view detailed information about all network interfaces, including both active and inactive ones, on a system.

Here is a breakdown of the command:

  • "ifconfig" stands for "interface configuration" and is a command-line utility used for managing network interfaces in Unix-like operating systems.
  • The "-a" option is a flag that stands for "all" and instructs ifconfig to display information for all interfaces, whether they are currently up or not.

When you execute this command, the output will show information about each network interface present on your system. This typically includes the interface name, such as eth0 or wlan0, as well as attributes like IP addresses (both IPv4 and IPv6), subnet masks, broadcast addresses, MAC (Media Access Control) addresses, and other pertinent details.

The "ifconfig -a" command is commonly used for troubleshooting network issues, configuring network settings, or gathering information about network interfaces on a Unix-like system.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • list ethernet ports?
  • list all network adapters?
  • linux show rx and tx bytes for network interfaces?
back to the ifconfig tool