32/46
Sign inSign up free

11. Edit a Config File in Place with sed

easy 10 XP ~5 minHands-on lab100% acceptance

The syncd service must move to a new upstream. Its config is /srv/lab/conf/syncd.conf, where the active upstream_host setting still points at legacy.internal.

Task

  • Change the active upstream_host setting to primary.internal, editing the file in place.
  • Keep a copy of the original file as /srv/lab/conf/syncd.conf.bak.
  • The commented-out upstream_host line must stay exactly as it is, and every other setting must remain unchanged.

About this machine

Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.

Teaching or writing about this? Embed this lab on your page

TerminalNot started

Your machine is ready to start

A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.

No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.