User Tools

Site Tools


assignments:2018assignment1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
assignments:2018assignment1 [2018/07/24 14:21]
erin
assignments:2018assignment1 [2019/08/20 14:33] (current)
erin
Line 1: Line 1:
 ====== Assignment 1 ====== ====== Assignment 1 ======
  
-**Due August 282018** +**Due Sept 32019**
-**Turn in the answers to this on canvas in a .txt document**+
  
-====== FURTHER EXERCISES 180823 ======+**Use a text editor application (do not use TextEdit) to write your answers.**
  
-===== Exercise1 =====+**Compile your answers in a .txt document.**
  
-Explain what these two commands do by executing ​them and seeing what happens:+**Turn your answers by uploading your .txt document to CANVAS.** 
 + 
 + 
 + 
 +===== Question1 ===== 
 + 
 +Explain what these two commands do by experimenting with them and seeing what happens:
  
 <code bash> <code bash>
Line 18: Line 23:
 </​code>​ </​code>​
  
-===== Exercise2 ​=====+===== Question2 ​=====
  
-The grandparent directory: Can you find TWO ways to move into the grandparent directory in a single command? That is, how can you move from\\ ''/​Users/​erin/​Documents/​Photos/​Selfies/''​\\ to\\ ''/​Users/​erin/​Documents/''​\\ by executing ''​cd''​ just once? Find TWO ways to do this. One way should use an absolute path and the other should use a relative path.+The grandparent directory: Can you find TWO ways to move into the grandparent directory in a single command? That is, how can you move from\\ 
 +''/​Users/​erin/​Documents/​Photos/​Selfies/''​\\ 
 +to\\ ''/​Users/​erin/​Documents/''​\\ 
 +by executing ''​cd''​ just once? Find TWO ways to do this. One way should use an **absolute path** and the other should use a **relative path**.
  
-===== Exercise3 ​=====+===== Question3 ​=====
  
-Say, I have several directories within my ''​Photos''​ directory:+If I have several directories within my ''​Photos''​ directory, like so:
 ''/​Users/​erin/​Documents/​Photos/​Instagram/''​\\ ''/​Users/​erin/​Documents/​Photos/​Instagram/''​\\
 ''/​Users/​erin/​Documents/​Photos/​NikonPics/''​\\ ''/​Users/​erin/​Documents/​Photos/​NikonPics/''​\\
Line 35: Line 43:
  
 ===== Exercise4 ===== ===== Exercise4 =====
-Up to this point, we have used ''​ls''​ without any arguments. However, ''​ls''​ can take an argument. ​See what happens when you give ''​ls''​ the following types of arguments:​ +Up to this point, we have used ''​ls''​ without any arguments. However, ''​ls''​ can take an argument. ​What happens when you give ''​ls''​ the following types of arguments?
-  - a directory ​specified by a relative path +  - a directory
-  - a directory specified by an absolute path+
   - a file    - a file 
 +
 +===== Question5 =====
 +
 +Say you have accidentally named a directory with spaces in the name ''​Files for Qualifying Exam''​
 +You try to list the contents of this directory by executing the following command?
 +
 +<​code>​
 +$ls Files for Qualifying Exam
 +</​code>​
 +
 +However, this doesn'​t work as expected.  ​
 +
 +A. Why doesn'​t this work? What is the computer trying to do? \\ 
 +B. What is a proper command required to list the contents of this directory?  ​
 +
  
  
Line 49: Line 71:
 This is just for fun and is not due... This is just for fun and is not due...
  
-===== Challenge Question ​=====+==== Challenge Question ====
 What do you think the difference is between these...\\ What do you think the difference is between these...\\
 ''/​Users/​erinnishimura/​Documents/''​\\ ​ ''/​Users/​erinnishimura/​Documents/''​\\ ​
Line 56: Line 78:
 ? ?
  
 +==== Terminus ====
 {{:​wiki:​loc_forest.gif?​100 |}} [[ http://​web.mit.edu/​mprat/​Public/​web/​Terminus/​Web/​main.html | Terminus ]] {{:​wiki:​loc_forest.gif?​100 |}} [[ http://​web.mit.edu/​mprat/​Public/​web/​Terminus/​Web/​main.html | Terminus ]]
  
assignments/2018assignment1.1532463714.txt.gz · Last modified: 2018/07/24 14:21 by erin