This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
assignments:2018assignment1 [2018/08/21 04:44] erin |
assignments:2018assignment1 [2019/08/20 14:33] (current) erin |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Assignment 1 ====== | ====== Assignment 1 ====== | ||
- | **Due August 28, 2018** | + | **Due Sept 3, 2019** |
- | **Compile your answers in a .txt document** | + | **Use a text editor application (do not use TextEdit) to write your answers.** |
- | **Turn your answers by uploading your .txt document to CANVAS** | + | **Compile your answers in a .txt document.** |
+ | |||
+ | **Turn your answers by uploading your .txt document to CANVAS.** | ||
Line 11: | Line 13: | ||
===== Question1 ===== | ===== Question1 ===== | ||
- | Explain what these two commands do by executing them and seeing what happens: | + | Explain what these two commands do by experimenting with them and seeing what happens: |
<code bash> | <code bash> | ||
Line 26: | Line 28: | ||
''/Users/erin/Documents/Photos/Selfies/''\\ | ''/Users/erin/Documents/Photos/Selfies/''\\ | ||
to\\ ''/Users/erin/Documents/''\\ | 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. | + | 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**. |
===== Question3 ===== | ===== Question3 ===== | ||
Line 41: | 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 ===== | ===== Question5 ===== | ||
- | What is the difference between an **argument** and an **option**? | + | 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? | ||