From the course: Linux: Files and Permissions
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Using globs to match files - Linux Tutorial
From the course: Linux: Files and Permissions
Using globs to match files
- [Instructor] For this exercise, we'll be using the globfiles directory that's included in this chapter's exercise files. You'll want to change into that directory in the command line. I extracted my exercise files into my home directory, so I'd type cd space tilde /ExerciseFiles/Chapter 1, Ch01, /globfiles and hit Enter. Before we get started matching files, let's get a listing of this directory by typing in ls -1 and hit Enter. This will list the files and only display one file per line. We can see that we have a lot of files with various naming conventions. We have files that start with the word photo, followed by a four-digit sequence number. Then the date that includes the month, day and year and then followed by an extension of either .png, or .jpg. We also have files that start with the word video, are followed by a sequence number, the date and end with .mpg. You may also notice that some photo files…
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
-
-
-
What is a file?4m 59s
-
(Locked)
Getting information about files5m 29s
-
(Locked)
About extended attributes3m 54s
-
(Locked)
Getting extended attributes4m 14s
-
(Locked)
About file globs5m 9s
-
(Locked)
Using character classes3m 7s
-
(Locked)
Using globs to match files6m 42s
-
(Locked)
Matching with brace expansion6m 11s
-
(Locked)
The Magic of extended globs6m 25s
-
(Locked)
Matching files with extended globs2m 22s
-
(Locked)
Advanced extended globs4m 22s
-
-
-
-
-