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

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…

Contents