␡
- Starting Up the Terminal
- Moving around the Filesystem
- Manipulating Files and Folders
- System Information Commands
- Searching and Editing Text Files
- Dealing with Users and Groups
- Getting Help on the Command Line
- Searching for Man Files
- Using Wildcards
- Executing Multiple Commands
- Moving on to More Advanced Uses of the Command Line
This chapter is from the book
Using Wildcards
Sometimes you need to look at or use multiple files at the same time. For instance, you might want to delete all .rar files or move all .odt files to another directory. Thankfully, there are series of wildcards you can use to acomplish this.
- * will match any number of characters. For example, *.rar will match any file with the ending of .rar
- * ? will match any single character. For example, ?.rar will match a.rar but not ab.rar
- * [ characters ] will match any of the character within the brackets. For example, [ab].rar will match a.rar and b.rar but not c.rar
- * [! characters ] will match any characters that are not listed. For example, [!ab].rar will match c.rar but not a.rar or b.rar.