mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
18 lines
448 B
Plaintext
18 lines
448 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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}}`
|