Lab Worksheet, Foundations of Computing, Week 2 -- Jan 16, 2001

A user logs, types this command, and sees this response:


   $ pwd

   /usr/users3/smijoh13

  1. What is this user's username (that he uses to log in)?


  2. What are two names for this user's home directory?


  3. What command copies the file .bashrc.telnet from the home directory of jackyj to this directory?


  4. What command produces a directory listing that shows the .bashrc.telnet file in this user's home directory?
    1. If the working directory is this user's home directory?

    2. In any directory, if this user issues the command?

    3. In any directory, for any user?


  5. The current directory is this user's home directory. What command creates a web subdirectory in this directory?


  6. What command changes the working directory to the web subdirectory?


  7. After issuing the previous command, what is the working directory?


  8. When this user issues this command, what will happen? Why?
    
       mv ~jackyj/fofc-lab.html .
    
    



  9. If you use the bash shell (most users do), in what file should you put your aliases?


  10. When does Unix execute the commands in this file?