List saved NetworkManager profiles with names, UUIDs, types, and device associations.
Which command is appropriate?
nmcli connection show lists saved profiles and active associations.
Detailed explanation
nmcli device showIncorrect. device show displays detailed device properties.
Incorrect. device show displays detailed device properties.
nmcli connection showCorrect. connection show lists saved profiles.
Correct. connection show lists saved profiles.
nmcli connection addIncorrect. connection add creates a profile.
Incorrect. connection add creates a profile.
nmcli monitorIncorrect. monitor follows NetworkManager events.
Incorrect. monitor follows NetworkManager events.
Try it yourself
An example you can run in a temporary verification environment.
printf '%s
' 'nmcli connection show -> NAME UUID TYPE DEVICE'Expected result
nmcli connection show -> NAME UUID TYPE DEVICEKey points
- Connection means profile
- show is read-only
- Different from device show
Notes
- Environment: 構文対応表の表示のみ
- 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.