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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • 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. flite: Speech synthesis engine
  2. mate-search-tool Command Examples in Linux
  3. aws lightsail Command Examples
  4. croc: Send and receive files easily and securely over any network
  5. calc: An interactive arbitrary-precision calculator in the terminal
  6. mocp Command Examples in Linux
  7. Command line parameters in shell scripts
  8. Which network ports are reserved by the Linux Operating System?
  9. audacious: An open-source audio player (Command Examples)
  10. openvpn3 Command Examples

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright