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.
Incorrect. connection add creates a new profile.
nmcli connection upIncorrect. connection up activates a profile.
Incorrect. connection up activates a profile.
nmcli general reloadIncorrect. general reload requests a configuration reload.
Incorrect. general reload requests a configuration reload.
nmcli device statusCorrect. nmcli device status lists current device states.
Correct. 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
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.