nmcli
nmcli
nmcli is a command-line tool for managing network connections in Linux. It is a powerful tool that can be used to configure network interfaces, create and manage connections, and troubleshoot network problems.
The syntax of the nmcli
command is as follows:
The options
argument controls the behavior of the nmcli
command. The most common options are as follows:
-h
: Displays help for thenmcli
command.-v
: Displays version information for thenmcli
command.-d
: Debug mode.
The command
argument specifies the command that you want to run. The most common commands are as follows:
connection
: Manage connections.device
: Manage network interfaces.network
: Manage networks.service
: Manage network services.
The arguments
argument specifies the arguments for the command. The arguments vary depending on the command that you are running.
For example, the following command will list all of the available connections:
This command will list all of the available connections on your system.
The following command will create a new connection named "my-connection":
This command will create a new connection named "my-connection". The connection will be of type ethernet.
The nmcli
command is a powerful tool that can be used to manage network connections in Linux. It is a valuable tool for network administrators and anyone who needs to work with networks.
Here are some additional things to keep in mind about the nmcli
command:
The
nmcli
command can be used to manage any type of network connection, including wired, wireless, and VPN connections.The
nmcli
command can be used to create and manage connections manually, or it can be used to manage connections that are automatically configured by NetworkManager.The
nmcli
command can be used to troubleshoot network problems.
It is important to be aware of these limitations when using the nmcli
command, so that you do not get confused by the output.
help
Last updated