Network

The ifconfig command

The classic to see network configuration. Today ip is preferred.

Syntax

ifconfig [interfaz]

Copy-ready examples

$ ifconfigYour network configuration
$ ifconfig | grep inetOnly the addresses

You can try them in the browser terminal: it does not touch your computer.

Typical mistakes

  • On many new distributions it is not installed by default.

Related commands

FAQ

Why is ifconfig not recognised?

Because it is not installed: use ip addr, which is always there.

Learn to actually use it

The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.

Start the free course