You are connected to a production Ubuntu server only through SSH. Before copying a new YAML file into /etc/netplan, you want to make sure the change is automatically rolled back if you forget to confirm it. Which command and behaviour combination correctly meets this requirement when you rely on Netplan's default settings?
sudo netplan revert --config-file /root/new.yaml - there is no such sub-command in Netplan, so no rollback would occur.
sudo netplan try --config-file /root/new.yaml - applies the file, then reverts automatically unless you confirm it within 120 seconds.
sudo netplan generate --config-file /root/new.yaml - only validates and generates backend files; it never touches the running network.
sudo netplan apply --config-file /root/new.yaml - writes and keeps the new settings permanently.
The netplan try sub-command temporarily applies a configuration and waits for a confirmation. If the administrator does nothing (for example, loses the SSH session), Netplan automatically restores the previous network state after its default 120-second timeout. The other commands either apply the configuration permanently, perform only a syntax check, or rely on a non-existent rollback command, so they do not provide the built-in safety timer required for remote work.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the purpose of the 'netplan try' command?
Open an interactive chat with Bash
What happens if I lose my connection while using 'netplan try'?
Open an interactive chat with Bash
How does 'netplan apply' differ from 'netplan try'?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
System Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .