Sign inSign up free

714. Delete Exactly the Files on the List

medium 20 XP ~7 minHands-on lab

The upload service stores user files in /srv/lab/uploads/orders/. A clean-up job produced /srv/lab/purge.list: the paths of the uploads to delete, each one ending in a NUL byte (\0), because user file names can contain anything, even newlines.

Task

  • Delete every file named in /srv/lab/purge.list.
  • Every other file in /srv/lab/uploads must stay.
  • Keep purge.list itself.

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: Create a User Account

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.