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
Last revision Both sides next revision
assignments:2018assignment1 [2018/07/24 14:23]
erin
assignments:2018assignment1 [2019/08/20 14:31]
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 ======+**Compile your answers in a .txt document**
  
-===== Exercise1 =====+**Turn your answers by uploading your .txt document to CANVAS**
  
-Explain what these two commands do by executing ​them and seeing what happens:+ 
 + 
 +===== Question1 ===== 
 + 
 +Explain what these two commands do by experimenting with them and seeing what happens:
  
 <code bash> <code bash>
Line 18: Line 21:
 </​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 ​=====
  
 If I have several directories within my ''​Photos''​ directory, like so: If I have several directories within my ''​Photos''​ directory, like so:
Line 35: Line 41:
  
 ===== 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  
 + 
 +===== 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 48: Line 69:
 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 55: Line 76:
 ? ?
  
 +==== 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.txt · Last modified: 2019/08/20 14:33 by erin