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.
nmcli device connectIncorrect. device connect activates a device.
nmcli connection deleteIncorrect. connection delete removes a profile.
nmcli device statusIncorrect. 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
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.