Enable or disable networking and all interfaces managed by NetworkManager

nmcli networking

  • Manage the networking status of NetworkManager.
    This subcommand can also be called with `nmcli n`.
    More information: <https://networkmanager.dev/docs/api/latest/nmcli.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

nmcli networking {{on|off}}

click the source code to copy install nmcli networking on any operating system with command-not-found.com