List saved NetworkManager connection profiles and inspect their names and UUIDs.
Do not activate a profile.
Which command is appropriate?
nmcli connection show lists saved connection profiles. nmcli device status instead shows current device state.
Detailed explanation
nmcli connection showCorrect. It lists saved NetworkManager connection profiles.
Correct. It lists saved NetworkManager connection profiles.
nmcli device connectIncorrect. device connect activates a device.
Incorrect. device connect activates a device.
nmcli connection deleteIncorrect. connection delete removes a profile.
Incorrect. connection delete removes a profile.
nmcli device statusIncorrect. device status lists current devices, not saved profiles.
Incorrect. device status lists current devices, not saved profiles.
Try it yourself
An example you can run in a temporary verification environment.
nmcli connection show 2>/dev/null || printf '%s
' 'NetworkManager is not available'Expected result
NAME、UUID、TYPE、DEVICE列、またはNetworkManager未利用を示すメッセージKey points
- connection refers to profiles
- show is read-only
- Distinguish device status
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.