Threesuns

Email

Contact

All Semesters

Semesters

All Courses

Courses

Introduction to UNIX/Linux

CSCI1483

3 credits

Labs

Working with Directories and Files

Lab

20 points

Requirements

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

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 a previous lab (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.