LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

nmcli-general

Manage general NetworkManager settings and status

TLDR

Show NetworkManager's overall state
$ nmcli general status
copy
Print the current hostname
$ nmcli general hostname
copy
Change the hostname
$ sudo nmcli general hostname [new_hostname]
copy
Show which operations the caller is allowed to perform
$ nmcli general permissions
copy
Show the logging level and domains in force
$ nmcli general logging
copy
Turn logging all the way up while debugging
$ sudo nmcli general logging level DEBUG domain ALL
copy
Raise the level for one subsystem only
$ sudo nmcli general logging level INFO domain WIFI
copy
Return the state in a form a script can parse
$ nmcli --terse --fields STATE,CONNECTIVITY general status
copy

SYNOPSIS

nmcli general [command] [arguments]

DESCRIPTION

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.

PARAMETERS

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

INSTALL

sudo apt install network-manager
copy
sudo apk add networkmanager-cli
copy

CAVEATS

Setting hostname or logging levels requires root privileges. Logging changes affect the running daemon immediately but don't persist across restarts unless configured in NetworkManager.conf. High debug levels can generate substantial log output.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid