Skip to main content
IBM 
ShopSupportDownloads
IBM HomeProductsConsultingIndustriesNewsAbout IBM
IBM : developerWorks : Linux : Education - Tutorials
LPI certification 101 exam prep, Part 1
ZIPPDF (letter)PDF (A4)e-mail
Main menuSection menuFeedbackPreviousNext
5. Introducing wildcards
  


Understanding non-matches page 3 of 11


Or if you wanted to list all the filesystem objects in /etc beginning with g, you could type:


$ ls -d /etc/g*
/etc/gconf  /etc/ggi  /etc/gimp  /etc/gnome  /etc/gnome-vfs-mime-magic  /etc/gpm  /etc/group  /etc/group-

Now, what happens if you specify a pattern that doesn't match any filesystem objects? In the following example, we try to list all the files in /usr/bin that begin with asdf and end with jkl:


$ ls -d /usr/bin/asdf*jkl
ls: /usr/bin/asdf*jkl: No such file or directory

Main menuSection menuFeedbackPreviousNext
PrivacyLegalContact