System Management

An administrator is editing /etc/netplan/01-netcfg.yaml on a remote Ubuntu server to change its static IP address. The only access is an SSH session over that same interface, and a mistake would lock the administrator out. Which command should be run to apply the change with an automatic rollback if the connection is lost?

Show the answer

Correct answerC. netplan try

netplan try applies the configuration temporarily and reverts it unless the user confirms within the timeout, so a lost SSH session restores the old settings. netplan apply makes the change permanent immediately with no rollback, which could leave the server unreachable.