IT 244: Introduction to Linux/Unix
Homework 4

Due Sunday, October 1th at 11:59 PM

All this work should be done on users3.cs.umb.edu

Deliverables

  1. A shell script named hw4.sh that performs the operations listed below.
    This file should be in an hw4 directory inside your hw directory inside your it244 directory.
    100 points

Requirements

Testing

Steps for Script

  1. Using one Unix command, go to my home directory using tilde, ~.
    Once you are there, show me that you are in the right directory using pwd.
  2. Using one Unix command, go to your home directory using tilde, ~.
    Once you are there, show me that you are in the right directory using pwd.
  3. Make sure you are in your home directory.
    Using one Unix command, go to your hw4 directory inside your hw directory, inside your it244 directory using a relative pathname.
    Once you are there, show me that you are in the right directory.
  4. Using one Unix command, go to my home directory using an absolute pathname.
    Once you are there, show me that you are in the right directory.
  5. Using one Unix command, go to the it244_files directory inside the course_files directory, inside my home directory, using an absolute pathname.
    Once you are there, show me that you are in the right directory.
  6. Using one Unix command, go to my home directory using a relative pathname employing ... Once you are there, show me that you are in the right directory.
  7. Using one Unix command, go to your home directory.
    Once you are there go to your it244 directory using a relative pathname.
    Show me that your are in the correct directory.
  8. Make sure you are in your it244 directory.
    Using touch create a file named test.txt.
    Go to your hw4 directory.
    Using .. stay in your hw4 directory but list the contents of your it244 directory.
  9. Make sure you are in your hw4 directory.
    Stay in this directory and copy the test.txt file from your it244 directory to your hw4 directory using a relative pathname.
    Show me that the copy operation succeeded by listing the contents of that directory.
  10. Using one Unix command and multiple instances of .. , go to your home directory.
    Once you are there, show me that you are in the right directory.
    Using one Unix command, copy the test.txt file from your it244/hw/hw4 directory to your home directory.
    List the contents of the directory so I know the copy succeeded.