Deactivate the active office connection but keep its saved profile.
Which command is appropriate?
nmcli connection down deactivates a connection without deleting its profile.
Detailed explanation
nmcli connection delete officeIncorrect. connection delete permanently removes the profile.
Incorrect. connection delete permanently removes the profile.
nmcli networking offIncorrect. networking off disables NetworkManager networking globally.
Incorrect. networking off disables NetworkManager networking globally.
nmcli device delete officeIncorrect. device delete is for software devices, not a profile name.
Incorrect. device delete is for software devices, not a profile name.
nmcli connection down officeCorrect. connection down office stops the active connection.
Correct. connection down office stops the active connection.
Try it yourself
An example you can run in a temporary verification environment.
printf '%s
' 'connection down office -> deactivate, keep profile'Expected result
connection down office -> deactivate, keep profileKey points
- down deactivates
- delete removes profile
- Not all networking
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.