1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-07 16:35:42 +02:00
tldr/pages/linux/nmcli-general.md

29 lines
840 B
Markdown
Raw Normal View History

# 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>.
- Show the general status of NetworkManager:
2025-07-20 01:37:29 +03:00
`nmcli {{[g|general]}}`
- Show the hostname of the current device:
2025-07-20 01:37:29 +03:00
`nmcli {{[g|general]}} {{[h|hostname]}}`
- Change the hostname of the current device:
2025-07-20 01:37:29 +03:00
`sudo nmcli {{[g|general]}} {{[h|hostname]}} {{new_hostname}}`
- Show the permissions of NetworkManager:
2025-07-20 01:37:29 +03:00
`nmcli {{[g|general]}} {{[p|permissions]}}`
- Show the current logging level and domains:
2025-07-20 01:37:29 +03:00
`nmcli {{[g|general]}} {{[l|logging]}}`
- 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,...}}`