# Computational biology at CSU

### Site Tools

assignments:2018assignment1

# Differences

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

 assignments:2018assignment1 [2018/07/24 14:21]erin assignments:2018assignment1 [2019/08/20 14:33]erin Both sides previous revision Previous revision 2019/08/20 14:33 erin 2019/08/20 14:31 erin 2018/08/21 05:14 erin 2018/08/21 05:08 erin 2018/08/21 05:06 erin 2018/08/21 05:04 erin 2018/08/21 05:04 erin 2018/08/21 05:03 erin 2018/08/21 05:03 erin 2018/08/21 04:45 erin 2018/08/21 04:44 erin 2018/08/14 15:47 erin 2018/08/14 15:47 erin 2018/07/24 14:59 erin 2018/07/24 14:27 erin 2018/07/24 14:27 erin 2018/07/24 14:26 erin 2018/07/24 14:26 erin 2018/07/24 14:23 erin 2018/07/24 14:23 erin 2018/07/24 14:21 erin 2018/07/24 14:21 erin 2018/07/24 14:20 erin 2018/07/24 14:19 erin created Next revision Previous revision 2019/08/20 14:33 erin 2019/08/20 14:31 erin 2018/08/21 05:14 erin 2018/08/21 05:08 erin 2018/08/21 05:06 erin 2018/08/21 05:04 erin 2018/08/21 05:04 erin 2018/08/21 05:03 erin 2018/08/21 05:03 erin 2018/08/21 04:45 erin 2018/08/21 04:44 erin 2018/08/14 15:47 erin 2018/08/14 15:47 erin 2018/07/24 14:59 erin 2018/07/24 14:27 erin 2018/07/24 14:27 erin 2018/07/24 14:26 erin 2018/07/24 14:26 erin 2018/07/24 14:23 erin 2018/07/24 14:23 erin 2018/07/24 14:21 erin 2018/07/24 14:21 erin 2018/07/24 14:20 erin 2018/07/24 14:19 erin created Line 1: Line 1: ====== Assignment 1 ====== ====== Assignment 1 ====== - **Due August 28, 2018** + **Due Sept 3, 2019** - **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: Line 18: Line 23: ​ - ===== 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 + ​ + + 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 ]]