Linux Survival
Search
Primary Menu
Skip to content
Home
Blog
Testimonials
Linux Links
Command List
Contact
Search for:
Linux Survival
We could get you to type two more "chmod" commands to modify the permissions of "gorillas" and "sq_monks", but there's an easier way using "wildcards". In case you're wondering what the "tron>" prompt is all about, we're just using another imaginary machine called "tron", which could be a machine similar to "zoo". A wildcard allows you to specify more than one file at the same time. The '*' matches any number of characters. For example, if you want to execute a command on all files in the current directory, you would specify '*' as the filename. If you want to be more selective and match only files which end in "ing", you would use "*ing". Note that the '*' can even match zero characters, so "*ing" would match "ing" as well as "sing". The other wildcard, '?', is not used very often, but it can be useful. It matches exactly one character. For example, if you want to match "sport", but not "spat", you would use "sp??t". The first '?' matches the 'a' in "spat", but the second '?' can't match anything, so "spat" fails. Click the right arrow.
Page 28
Where learning Linux is easy
Module 1 Introduction
Directory Structure
List Directory
View File Contents
Create Directory
Move and Rename File
Change Directory
Get Current Location
Quiz 1
End of Module 1
Module 2 Introduction
Pathnames
Copy File
Remove File
Remove Directory
File Security
Change File Permissions
Wildcards
Groups Memberships
Quiz 2
End of Module 2
Module 3 Introduction
Home Directories
Manual Pages
User Information
Find File
Concatenate Files
Redirect Output
Print
Print Job Status
Cancel Print Job
Quiz 3
End of Module 3
Module 4 Introduction
Copy Tree
Disk Space
Remove Tree
Process Status
Pipe Output
Pattern Matching
Kill Process
Quiz 4
Conclusion