Check Network Status - nm-online Command | Online Free DevTools by Hexmos

Check network connection status with the nm-online command. Quickly determine network connectivity and troubleshoot issues using this simple command-line tool. Free online tool, no registration required.

nm-online

Ask NetworkManager whether the network is connected. More information: https://networkmanager.pages.freedesktop.org/NetworkManager/NetworkManager/nm-online.html.

  • Find out whether the network is connected and print the result to stdout:

nm-online

  • Wait n seconds for a connection (30 by default):

nm-online --timeout {{n}}