2022-07-30 14:23:57 +02:00
|
|
|
# nmcli general
|
|
|
|
|
|
|
|
> Manage general settings of NetworkManager.
|
2024-10-10 10:22:22 +02:00
|
|
|
> More information: <https://networkmanager.pages.freedesktop.org/NetworkManager/NetworkManager/nmcli.html>.
|
2022-07-30 14:23:57 +02:00
|
|
|
|
|
|
|
- Show the general status of NetworkManager:
|
|
|
|
|
2025-07-20 01:37:29 +03:00
|
|
|
`nmcli {{[g|general]}}`
|
2022-07-30 14:23:57 +02:00
|
|
|
|
|
|
|
- Show the hostname of the current device:
|
|
|
|
|
2025-07-20 01:37:29 +03:00
|
|
|
`nmcli {{[g|general]}} {{[h|hostname]}}`
|
2022-07-30 14:23:57 +02:00
|
|
|
|
|
|
|
- Change the hostname of the current device:
|
|
|
|
|
2025-07-20 01:37:29 +03:00
|
|
|
`sudo nmcli {{[g|general]}} {{[h|hostname]}} {{new_hostname}}`
|
2022-07-30 14:23:57 +02:00
|
|
|
|
|
|
|
- Show the permissions of NetworkManager:
|
|
|
|
|
2025-07-20 01:37:29 +03:00
|
|
|
`nmcli {{[g|general]}} {{[p|permissions]}}`
|
2022-07-30 14:23:57 +02:00
|
|
|
|
|
|
|
- Show the current logging level and domains:
|
|
|
|
|
2025-07-20 01:37:29 +03:00
|
|
|
`nmcli {{[g|general]}} {{[l|logging]}}`
|
2022-07-30 14:23:57 +02:00
|
|
|
|
|
|
|
- Set the logging level and/or domains (see `man NetworkManager.conf` for all available domains):
|
|
|
|
|
2025-07-20 01:37:29 +03:00
|
|
|
`sudo nmcli {{[g|general]}} {{[l|logging]}} {{[l|level]}} {{INFO|OFF|ERR|WARN|DEBUG|TRACE}} domain {{domain_1,domain_2,...}}`
|