File Golbbling
Last updated
Last updated
File Globbing consists of special characters that can be used to match file or path names.
As you can see from the image above, there are two different hello directories. When using rm with a start of the name followed by the*, it will remove all of the files with everything starting with hell. Globbing is especially useful for file management since it can match the path names to the files you want to manage.
When using echo while globbing, the command will show you everything you can gobble.
In the image above, you can see that if you want to gobble any directory starting with the letter D, it will show you call the files you can. If you're going to do this with the letters D and N, you must do it with the * between both.