NEW BRUNSWICK COMPUTING SERVICES
HELP DESK GROUP

Basics Of The UNIX Operating System
Exercise 1

Basic Use of Metacharacters

In this practice you will practice using wild cards and a few other metacharacters.

  1. In the directory whose full name is "/bin", list the files that end in "sh". What command did you use?


  2. On one line, use the "cd" command to first go to your home directory then to the "UNXclass" subdirectory. What is the command line?


  3. What command lists the files in the current directory that begin with upper case letters?


  4. If they do not already exist, create three new directories in the UNXclass directory; "Letters", "Programs", and "Misc". What command(s) did you use?


  5. Copy all files in the current directory whose names contain the character string "let" into the subdirectory "Letters". What command did you use?


  6. Copy all files in the current directory whose names end in ".c" or ".h" into the subdirectory "Programs". What command did you use?


  7. Copy all files in the current directory whose names contain the character strings "notes" or "misc" into the subdirectory "Misc". What commands did you use?


  8. Copy all files which begin with "copy.me" into the "UStoreIt" subdirectory. Move all files which begin with "move.me" into the "UStoreIt" subdirectory. What commands did you use?



  9. Delete all files which contain the sequence "del". What command did you use?


after attempting the above look here for answers

End of Practice 1 - Basic Use of Metacharacters