mirror of https://github.com/CrimsonTome/tldr.git
13 lines
324 B
Markdown
13 lines
324 B
Markdown
|
# nm-online
|
||
|
|
||
|
> Ask NetworkManager whether the network is connected.
|
||
|
> More information: <https://networkmanager.dev/docs/api/latest/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}}`
|