Linux Labs

First steps / Stage 5 of 15

Navigation and paths

Not running Starting usually ~20 s
Leave the lesson

Step 7 of 8 · lab · 10 minintroductory

Navigation: find a file in a tree

Search an unfamiliar directory tree for a file by name and record its path.

Situation

The team dumps everything into /srv/data: projects, an archive, people's own files. A colleague put the file flag.txt somewhere in there and cannot remember which directory. They need the full path to the file.

Task

Write the absolute path to flag.txt into ~/answer.txt as a single line, for example /srv/data/a/b/flag.txt. The file holds the path only, nothing else.

Lab · on your own

No commands are given in this lab: type them in the terminal yourself. Goals are checked on the machine after every command.

Goals

0 of 2
  • File ~/answer.txt exists and is not empty — not done yet
  • ~/answer.txt holds the absolute path to flag.txt on one line — not done yet
Ctrl+Enter
Starts the machine node1 · Ubuntu 24.04

The machine is starting

Hints

0 of 3

Lab goals

0 of 2
  • File ~/answer.txt exists and is not empty — not done yet
  • ~/answer.txt holds the absolute path to flag.txt on one line — not done yet
node1 Ubuntu 24.04

Lab goals

0 of 2
  • File ~/answer.txt exists and is not empty — not done yet
  • ~/answer.txt holds the absolute path to flag.txt on one line — not done yet
Loading…