# nm-online > 询问 NetworkManager 网络是否连接。 > 更多信息:。 - 查找网络是否连接,并将结果打印到 `stdout`: `nm-online` - 等待 `n` 秒以获取连接(默认30秒): `nm-online --timeout {{n}}`