From the course: Linux: Files and Permissions
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
About file globs - Linux Tutorial
From the course: Linux: Files and Permissions
About file globs
- [Narrator] One of the reasons that manipulating files on the command line can be faster and more efficient than the GUI is file globbing. File globbing uses patterns containing wildcards to match files based on their names. For instance, if you wanted to list all file names starting with the word file followed by any extension, you could use L-S space file asterisk. This glob can be used with any command, as the globbing is handled by the shell itself. You can practice the globs in this video using the files I've provided in this chapter's directory of the exercise files archive. The first wild card we'll cover is the asterisk. An asterisk matches zero or more of any type of character. It matches everything and nothing. Let me explain. In this example, I'm using a glob of file asterisk. The asterisk would match the letters .txt, .jpg, and .tar.gz. But it would also match a file named file. The reason for this is that…
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
-
-
-
-
-