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 - Linux Tutorial
From the course: Linux: Files and Permissions
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Understanding filesystem paths4m 18s
-
(Locked)
Creating files and dirs4m 38s
-
(Locked)
Copying files and dirs4m 39s
-
(Locked)
Moving and renaming files and dirs4m 11s
-
(Locked)
Deleting files and dirs3m 44s
-
(Locked)
Creating links to files and dirs6m 24s
-
(Locked)
Making file manipulation safe2m 12s
-
(Locked)
Challenge: Linux files3m 21s
-
(Locked)
Solution: Linux files3m 45s
-
-
-
-