HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

nm-online — Ask NetworkManager whether the network is connected. More information: <https://networkmanager.pages

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandwhetherasknetworkclinm-onlinenetworkmanager
linux

Problem

How to use the nm-online command: Ask NetworkManager whether the network is connected. More information: <https://networkmanager.pages.freedesktop.org/NetworkManager/NetworkManager/nm-online.html>.

Solution

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}}

Code Snippets

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}}

Context

tldr-pages: linux/nm-online

Revisions (0)

No revisions yet.