CIS 2101 Homework Assignment #3

Name:
Email:

NOTE: To copy and paste in the Unix environment the following may be used:
  1. Explain what a file system is (in your own words)(1pt).

  2. For the file /mnt/homes/CLASSES/CIS2101/lab03/weather/README on your system (2pts):
    1. Who owns the file?
    2. When was this file last modified?

  3. Explain the difference between an absolute path and a relative path. Give an example for each.(2pts)

  4. After you type the command "cd" with no argument into a shell tool, which directory will you be in?(1pt)

  5. What command would you use to change the working directory of your shell to the mcidas subdirectory in your home directory? Show 2 commands: one using a relative path, and one using the absolute path. (2pt)

  6. Change directory to /mnt/homes/CLASSES/CIS2101/lab03 for the following questions:
    (1 pt. each)
    • Show the command and option for the long listing of the directory sorted so that the oldest file is at the end of the output.
    • What is the group for the file dcidft.log?
    • Who owns the file mcscour.log?
    • How large (in kilobytes) is the file ROUTEPP.LOG?
    • What year was the file metrics.txt last modified?
    • Show the command and option to output a long listing of the directory, sorted so that the file with the most recent date is at the end of the output.
    • Show the command and option to output a long listing of the directory, sorted so that the file with the largest size is shown at the end of the output.

  7. What command would you use to change the working directory of your shell to your CLASSES directory for CIS2101? Use this command to go to that directory and show the command and output to display your current working directory. (2pt)

  8. What command sequence would you use to set the "BURKE_MTN" environmental variable (env) to "/us/vt/caledonia/burke/mtns/".(1pt) Hint: Look at lab #2.

last updated: 12 Sep 2017 20:30