List devices recognized by NetworkManager and their current connected or disconnected state.
Do not change configuration.
Which command is appropriate?
nmcli device status displays device type, state, and active connection. It is a device-state view, distinct from saved connection profiles.
Detailed explanation
nmcli connection addIncorrect. connection add creates a new profile.
nmcli connection upIncorrect. connection up activates a profile.
nmcli general reloadIncorrect. general reload requests a configuration reload.
nmcli device statusCorrect. nmcli device status lists current device states.
Try it yourself
An example you can run in a temporary verification environment.
nmcli device status 2>/dev/null || printf '%s
' 'NetworkManager is not available'Expected result
DEVICE、TYPE、STATE、CONNECTION列、またはNetworkManager未利用を示すメッセージKey points
- device shows device state
- status is read-only
- connection refers to profiles
Notes
- Environment: NetworkManager nmcli / 読み取り専用
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Network interface
A host attachment whose link state and addresses can be managed.
Connection profile
Saved settings used to activate a persistent network connection.
Routing table
Rules that select the next hop for each destination network.