1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/nm-online.md
2024-10-10 10:22:22 +02:00

356 B

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