Vigyata.AI
Is this your channel?

Linux Escape Room: Level 13 Create all the files

119 views· 2 likes· 3:42· Feb 5, 2025

🛍️ Products Mentioned (1)

Welcome to my Linux Escape Room Series! In this series we'll be going through walkthroughs of each level! Ready to take the challenge? Go download the Docker Container here: https://hub.docker.com/r/sassdrew/linux-escape-room New levels released every week on Tuesday at 6PM CST For Business Inquiries you can email me at: sassdrew501@gmail.com

About This Video

In this Linux Escape Room episode I’m walking through Level 13, which is basically a “create a ton of files” challenge. The hint tells me my boss wants 1,000 files named in a specific format: file_<number>.txt where the number goes from 1 to 1000, and they need to live in /root/room1/files. So I start by creating the directory, cd’ing into it, and confirming the filename pattern before I generate anything. The big takeaway is how I automate repetitive stuff in Linux without wasting time. Sure, you could run touch 1,000 times, but that’s painful. Instead, I use a one-liner for loop that iterates over a sequence from 1 to 1000 and touches each file as it goes. In this container’s shell I use seq (sequence) to generate the numbers, then I verify the result with ls and a quick word count to confirm I actually made 1000 files. After that, I rerun the level script, grab the key, and escape the room.

Frequently Asked Questions

🎬 More from sass drew