Signal9Signal9 — home
online
back to labs

Dojo: Name the Largest File

EasyOne-Liner Dojo5 min
The brief

The directory /root/data holds a handful of files of different sizes. In ONE line, write the NAME of the single largest one (just its filename, no path, no size) to /root/answer.txt.

There's a slick way to do this that most beginners miss — a single ls flag sorts by size. Find it and keep the chain short.

What you'll do
  • Write the filename of the largest file in /root/data to /root/answer.txt, in one line

Hands-on lab: you work on a real Linux box in your browser, graded on the machine's actual state.