mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-13 21:48:21 +00:00
Update cheatsheets
This commit is contained in:
34
linux/nmcli-general
Normal file
34
linux/nmcli-general
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
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.dev/docs/api/latest/nmcli.html>.
|
||||
|
||||
- Show the general status of NetworkManager:
|
||||
|
||||
`nmcli general`
|
||||
|
||||
- Show the hostname of the current device:
|
||||
|
||||
`nmcli general hostname`
|
||||
|
||||
- Change the hostname of the current device:
|
||||
|
||||
`sudo nmcli general hostname {{new_hostname}}`
|
||||
|
||||
- Show the permissions of NetworkManager:
|
||||
|
||||
`nmcli general permissions`
|
||||
|
||||
- Show the current logging level and domains:
|
||||
|
||||
`nmcli general 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,...}}`
|
||||
Reference in New Issue
Block a user