cmdxray / commands / ifconfig

What does ifconfig do?

configure or display network-interface settings (legacy; prefer `ip`).

▸ Explain your own ifconfig command →

ifconfig examples, explained

$ ifconfig

  • ifconfigconfigure or display network-interface settings (legacy; prefer `ip`)

$ ifconfig -a

  • ifconfigconfigure or display network-interface settings (legacy; prefer `ip`)
  • -ashow all interfaces, including ones that are down

$ ifconfig eth0

  • ifconfigconfigure or display network-interface settings (legacy; prefer `ip`)
  • eth0an argument passed to the command

ifconfig flags & options

-ashow all interfaces, including ones that are down
-sshort listing, like `netstat -i`
-vverbose — show extra error details

Other commands

Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.