Activate the saved NetworkManager profile named office.
Do not create a new profile.
Which command is appropriate?
nmcli connection up ID activates a saved profile. The ID can be a name, UUID, or other accepted identifier.
Detailed explanation
nmcli device status officeIncorrect. device status only displays device state.
Incorrect. device status only displays device state.
nmcli connection up officeCorrect. It activates the saved office profile.
Correct. It activates the saved office profile.
nmcli connection add officeIncorrect. connection add creates a new profile and needs more configuration.
Incorrect. connection add creates a new profile and needs more configuration.
nmcli connection show officeIncorrect. connection show only displays the profile.
Incorrect. connection show only displays the profile.
Try it yourself
An example you can run in a temporary verification environment.
nmcli connection help 2>/dev/null | sed -n '1,8p' || printf '%s
' 'nmcli is not installed'Expected result
connectionのshow、up、downなどの操作概要、または未導入メッセージKey points
- connection up activates
- show only inspects
- add creates a profile
Notes
- Environment: NetworkManager nmcli help / 状態変更なし
- 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.