Activate the saved NetworkManager profile office.
Which command is appropriate?
nmcli connection up PROFILE activates a saved profile on a suitable device.
Detailed explanation
nmcli connection show officeIncorrect. connection show only displays the profile.
Incorrect. connection show only displays the profile.
nmcli device status officeIncorrect. device status lists state rather than activating a profile.
Incorrect. device status lists state rather than activating a profile.
nmcli connection up officeCorrect. connection up office activates the profile.
Correct. connection up office activates the profile.
nmcli connection reload officeIncorrect. connection reload rereads profiles but does not activate one.
Incorrect. connection reload rereads profiles but does not activate one.
Try it yourself
An example you can run in a temporary verification environment.
printf '%s
' 'connection up office -> activate profile'Expected result
connection up office -> activate profileKey points
- up activates
- Specify profile
- Separate from reload
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.