List device names, types, states, and active profiles managed by NetworkManager without changing settings.
Which command is appropriate?
nmcli device status displays device state and the active connection in a concise read-only view.
Detailed explanation
nmcli device statusCorrect. It lists device type, state, and active connection.
Correct. It lists device type, state, and active connection.
nmcli connection deleteIncorrect. connection delete removes a profile.
Incorrect. connection delete removes a profile.
nmcli networking offIncorrect. networking off disables NetworkManager networking.
Incorrect. networking off disables NetworkManager networking.
nmcli radio all offIncorrect. radio all off disables radios.
Incorrect. radio all off disables radios.
Try it yourself
An example you can run in a temporary verification environment.
nmcli --offline device status 2>&1 || nmcli device statusExpected result
DEVICE、TYPE、STATE、CONNECTION等の列(導入環境)Key points
- Read-only device status
- Device and profile
- Different from disabling networking
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.