mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-22 11:51:19 +00:00
Update cheatsheets
This commit is contained in:
@@ -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,...}}`
|
||||
|
||||
Reference in New Issue
Block a user