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:27]
erin
assignments:2018assignment1 [2019/08/20 14:33] (current)
erin
Line 1: Line 1:
 ====== Assignment 1 ====== ====== Assignment 1 ======
  
-**Due August 282018**+**Due Sept 32019**
  
-**Compile ​your answers ​in a .txt document**+**Use a text editor application (do not use TextEdit) to write your answers.**
  
-**Turn your answers in on CANVAS**+**Compile ​your answers in a .txt document.**
  
 +**Turn your answers by uploading your .txt document to CANVAS.**
  
  
-===== Exercise1 ===== 
  
-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 21: 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 ​=====
  
 If I have several directories within my ''​Photos''​ directory, like so: If I have several directories within my ''​Photos''​ directory, like so:
Line 38: 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. a directory ​specified by a relative path\\ +  ​a directory 
-  ​B. a directory ​specified ​by an absolute path\\ +  ​- a file  
-  C. 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? \\  
 +BWhat is proper command required to list the contents of this directory? ​  
  
  
assignments/2018assignment1.1532464077.txt.gz · Last modified: 2018/07/24 14:27 by erin