From 0601309ceaa0b3c4ae505c1003fe30956549569b Mon Sep 17 00:00:00 2001 From: xueminpan Date: Wed, 5 Feb 2014 20:03:48 -0500 Subject: [PATCH] Update lab-02-part-01-paths-review.txt --- lab-02-part-01-paths-review.txt | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/lab-02-part-01-paths-review.txt b/lab-02-part-01-paths-review.txt index 5bda30f..395b8c6 100644 --- a/lab-02-part-01-paths-review.txt +++ b/lab-02-part-01-paths-review.txt @@ -13,82 +13,82 @@ Feel free to use your workstation to test your answers to the questions that don ========== 1. Write the command that you would use to change to the root directory. ---------- - +cd / ========== 2. Write the command that you would use to change to your home directory. ---------- - +cd /Users/student ========== 3. Write the command that you would use to change to your Desktop folder. ---------- - + cd /Users/student/Desktop ========== 4. What's the absolute path to your home directory? ----------- +---------- +cd /Users/student ========== 5. What's the absolute path to your Desktop directory? ---------- - +cd /Users/student/Desktop ========== 6. What's the absolute path to your Desktop directory? ---------- - +cd /Users/student/Desktop ========== 7. If you're in your home directory, what's the relative path to your Desktop directory? ---------- - +cd ~/Desktop ========== 8. If you're in your home directory, how would you create a new directory on your desktop called stuff without changing your directory? Write your command below. ---------- - +mkdir Desktop/stuff ========== 9. If you're in your root directory, how would you create a new directory on your desktop called more-stuff without changing your directory? Write your command below. ---------- - +mkdir Users/student/Desktop/more-stuff ========== 10. If you're in your Desktop directory, how would you create a new directory on your desktop called even-more-stuff? Write your command below. ---------- - - +mkdir even-more-stuff ========== 11. If you're in your home directory, how would you change to the directory right above it using a relative path (it should bring you to /Users)? Write your command below. ---------- - +cd .. ========== 12. If you're in your Desktop directory, how would you change to two directories right above it (again, this should be /Users) using a relative path? Write your command below. ---------- - +cd ../.. ========== 13. What's the shortcut for changing to the directory that you were just previously in? For example, if I were in /Volumes... and I changed to /Users/profesor/Desktop, what's a quick way of changing to /Volumes without writing something like cd /Volumes? ---------- - +cd - ========== 14. How would you show all of the files (including hidden ones) with detailed (long) information that are on you're Desktop if you're in your home directory? Write your command below. ---------- - +ls -a ========== Optional Challenge: