Network

The nmcli command

Controls network connections from the terminal: device status, wifi networks and connection profiles.

Syntax

nmcli device status | nmcli connection show | nmcli device wifi list

Most useful options

device statusStatus of each interface
connection showConnection profiles
device wifi listVisible wifi networks

Copy-ready examples

$ nmcli device statusNetwork status

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

Typical mistakes

  • Changing network or activating a connection requires permissions.

Related commands

FAQ

nmcli or nmtui?

nmcli is command line; nmtui is a friendlier text interface.

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