From the course: Linux: Files and Permissions

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Solution: Linux files

Solution: Linux files

(upbeat music) - [Instructor] And now for the Linux file solution. First, let's recap what is needed for this challenge. You need directories for each day of the week and nested inside are directories for each hour. Inside the hourly directories should be JPEG photo files for every minute starting at number 1 and MPEG video files for every 10 minutes starting at number 10. You can pause the video and type in each stage of my solution as I talk about it, if you want. Let's talk about creating the directory structure first. We want to use "mkdir -p" because it creates parent directories if they don't exist. Then we use brace expansion to create directories for Sunday, Monday, Tuesday, and so on. Then we provide a slash to separate the directories and another set of braces for the hours numbered 1 through 24. We will be using the same group of brace expansions over and over again so be sure that it makes sense. You can use…

Contents