Practice Paths 2

Use the picture to answer the questions below:

  1. If you are in the ssdir1 directory, write the command to show the contents of file22:
    1. using a relative path
    2. using an absolute path
  2. Write the command to append the contents of file22 to fileA1 using absolute paths.
  3. Write the simplest command show the names of all the files under the dirtree directory:
    1. using a relative path if you are in the mbrummit directory
    2. using an absolute path

    BTW, "all the files" means files, hidden files, directories, ... If I don't want directories, I'll say something like "except directories", or it should be clear from the context. For instance if I said something like


    I expect an answer like cat s* >> all If I wanted you to skip the directories, I'd have it in the question.
  4. Write the command to list the files and their permissions in the sbd4 directory:
    1. using a relative path if you are in the sbd2 directory
    2. using a relative path if you are in the ssdir2 directory
    3. using an absolute path

After it is turned in, you will download and setup the tar file during class so you can verify your answers.