Sign inSign up free

718. Repair the Dangling Links

medium 20 XP ~8 minHands-on lab

/srv/lab/summit/ is full of symbolic links into /srv/lab/releases. Last night a clean-up script moved older releases to /srv/lab/archive (same folder structure under it) and deleted some others for good. Now some of the links point to nothing.

Task

For every symbolic link under /srv/lab/summit that no longer resolves:

  • if its target now exists under /srv/lab/archive (same path below releases → below archive), make the link point there;
  • if the target exists nowhere, delete the link, and write its path to /home/student/removed-links.txt (one per line, sorted).

Links that work today must keep pointing exactly where they point now.

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.

Part of Prepare for the LFCS. Next step: Same File, Stored Five Times

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.