Update cheatsheets

This commit is contained in:
ivuorinen
2025-07-20 00:24:01 +00:00
parent 16134c78d9
commit 1ec3810968
41 changed files with 352 additions and 139 deletions

View File

@@ -6,29 +6,28 @@ source: https://github.com/tldr-pages/tldr.git
# nmcli general
> Manage general settings of NetworkManager.
> This subcommand can also be called with `nmcli g`.
> More information: <https://networkmanager.pages.freedesktop.org/NetworkManager/NetworkManager/nmcli.html>.
- Show the general status of NetworkManager:
`nmcli general`
`nmcli {{[g|general]}}`
- Show the hostname of the current device:
`nmcli general hostname`
`nmcli {{[g|general]}} {{[h|hostname]}}`
- Change the hostname of the current device:
`sudo nmcli general hostname {{new_hostname}}`
`sudo nmcli {{[g|general]}} {{[h|hostname]}} {{new_hostname}}`
- Show the permissions of NetworkManager:
`nmcli general permissions`
`nmcli {{[g|general]}} {{[p|permissions]}}`
- Show the current logging level and domains:
`nmcli general logging`
`nmcli {{[g|general]}} {{[l|logging]}}`
- Set the logging level and/or domains (see `man NetworkManager.conf` for all available domains):
`nmcli general logging level {{INFO|OFF|ERR|WARN|DEBUG|TRACE}} domain {{domain_1,domain_2,...}}`
`sudo nmcli {{[g|general]}} {{[l|logging]}} {{[l|level]}} {{INFO|OFF|ERR|WARN|DEBUG|TRACE}} domain {{domain_1,domain_2,...}}`