• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

nmcli general Command Examples in Linux

by Deepika

The general subcommand of nmcli (NetworkManager Command Line Interface) is used for managing the general settings of NetworkManager. This subcommand provides various options for configuring NetworkManager, including changing the status of NetworkManager, enabling/disabling automatic connections, and managing NetworkManager’s global DNS configuration.

The nmcli g shorthand can be used instead of nmcli general for convenience.

nmcli general Command Examples

1. Show the general status of NetworkManager:

# nmcli general

2. Show the hostname of the current device:

# nmcli general hostname

3. Change the hostname of the current device:

# sudo nmcli general hostname {{new_hostname}}

4. Show the permissions of NetworkManager:

# nmcli general permissions

5. Show the current logging level and domains:

# nmcli general logging

6. 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,...}}

Filed Under: Linux

Some more articles you might also be interested in …

  1. kubectl: command not found
  2. “polkit code=exited status=1/FAILURE” – PolicyKit Failing to Start in CentOS/RHEL 7 and 8
  3. “az feedback”: Send feedback to the Azure CLI Team
  4. virt-xml-validate: command not found
  5. last Command Examples in Linux
  6. kdialog: command not found
  7. How to Reset Root Password in CentOS/RHEL 8
  8. tee: command not found
  9. qtile Command Examples in Linux
  10. printf: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • csslint: A linter for CSS code
  • csh: The shell (command interpreter) with C-like syntax (Command Examples)
  • csc: The Microsoft C# Compiler (Command Examples)
  • crystal: Tool for managing Crystal source code

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright