Fall 2017

Lab03
Working with Directories and Files

Due: Thursday October 06, 2016 11:59 PM

Lab03 - Working with Directories and Files

Requirements

Answer all questions correctly (2 points each)20 pts
Total20 pts

Resources

Objective

To practice working in the file system

Instructions

Perform each of the tasks described below from your home directory and record the command(s) used to complete each task in a text file.

  1. Create three subdirectories directly under your home directory. Name them: first, next, and last.
  2. Copy the files you created during lab 2 (Names, Names_too, and Names_all) into each of your new directories.
  3. In the "first" directory, rename "Names" to "Friends".
  4. Move the "Friends" file to your home directory.
  5. Delete the "Names_all" file from the "last" directory.
  6. Determine the access permissions for all files in the "next" directory and note them here.
  7. Make your home directory your current working directory.
  8. Display the "Names_all" file in sorted order.
  9. Display the "Names_all" file in reverse order.
  10. Remove all the subdirectories you created during this lab exercise.