snippetbashTip
nm-online — Ask NetworkManager whether the network is connected. More information: <https://networkmanager.pages
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-onlineWait
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-onlineWait `n` seconds for a connection (30 by default)
nm-online --timeout {{n}}Context
tldr-pages: linux/nm-online
Revisions (0)
No revisions yet.