Assessment exercise: The Unix Shell --- Files and Directories

Sep 28, 2014 • Tiffany Timbers

folder_structures_image

Using the image above to illustrate a file/folder structure, answer the following questions:

If pwd displays /users/darwin/flowers, what will ls -F .. display?

(a) flowers peas
(b) finches flowers iguanas
(c) nothing because the folder is empty
(d) finches/ flowers/ iguanas/

  1. Draw a link between the folder names and their correct path(s)

  2. darwin               a.  /users/darwin/flowers
  3. expedition         b.  /users/darwin
  4. finches              c.  /users/mendel/peas
  5. flowers              d. /users/darwin/expedition
  6. iguanas             e. /users
  7. mendel              f. /users/darwin/flowers
  8. peas                  g. /users/darwin/finches
  9. users                 h. /users/mendel/flowers
  10. flowers               i.  /users/mendel