← 返回命令列表

Linux command

nmcli-general 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

nmcli general

Example

nmcli general hostname

Change the hostname

sudo nmcli general hostname [new_hostname]

Example

nmcli general permissions

Example

nmcli general logging

Set the logging level

sudo nmcli general logging level [INFO|OFF|ERR|WARN|DEBUG|TRACE] domain [domain_1,domain_2,...]

说明

nmcli general manages general NetworkManager settings and provides status information about the network management subsystem. It shows whether networking is enabled, the current connectivity state, and overall system network status. The hostname subcommand provides a NetworkManager-aware way to set the system hostname, which is then propagated to other hostname services and persisted across reboots. The logging subcommand controls NetworkManager's debug output, useful for troubleshooting connection issues. Domains include WIFI, ETHERNET, VPN, DHCP, and others.

参数

status
Show overall NetworkManager status (default if no subcommand)
hostname
Show or set the system hostname
permissions
Display current user's NetworkManager permissions
logging
Show or set logging verbosity and domains
reload
Reload NetworkManager configuration

FAQ

What is the nmcli-general command used for?

nmcli general manages general NetworkManager settings and provides status information about the network management subsystem. It shows whether networking is enabled, the current connectivity state, and overall system network status. The hostname subcommand provides a NetworkManager-aware way to set the system hostname, which is then propagated to other hostname services and persisted across reboots. The logging subcommand controls NetworkManager's debug output, useful for troubleshooting connection issues. Domains include WIFI, ETHERNET, VPN, DHCP, and others.

How do I run a basic nmcli-general example?

Run `nmcli general` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does status do in nmcli-general?

Show overall NetworkManager status (default if no subcommand)