Menu

Class 1: Homework


You must print this sheet out and write/type answers on it!
  1. Consider the following directory structure:

    1. Give the absolute path of the proj1 directory.
      
      
      		  
    2. If your current working directory is /home/m001234, what is the relative path to main.cpp?
      
      
      		  
    3. If your current working directory is /home/m001234, what is the relative path of the passwd file?
      
      
      		  
    4. If your current working directory is /home, what's the absolute path to the passwd file?
      
      
      		  
    5. For the previous question, did I need to give you the current working directory? Why or why not?
      
      
      
      		  
  2. According to your reading for Class 1 (http://catb.org/esr/writings/taoup/html/ch02s01.html) what two men were the inventor and co-inventor of Unix?
    
    
    
    
  3. Download and install cygwin on your machine. Use these instructions to help you. It should be a painless install.

    Use ssh from Cygwin to login to one of the Lab machines (see the course Resources link for mahcines to login to). Look in the file /usr/include/iso/limits_iso.h to find the value of "INT_MAX", the largest number that can be stored in an int on the machine. What is it? (Note: a clever Unix user would use grep here!)