jversoza/lab_02_commandline_02 — pull request #2 by jazzy26 (2014-02-24 00:13:46+00:00)
Title: Delete lab-02-part-01-paths-review.txt

Lab - Paths and Review
==========
Follow the instructions line-by-line.

* Type in the commands as is, but ignore the beginning prompt.
* Enter, tab, up and down are represented by , and .
* "No output" or "nothing happens" are valid answers to any of the questions.
==========

==========
Feel free to use your workstation to test your answers to the questions that don't explicitly tell you to run a command)
==========
==========
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.
----------
~

==========
3. Write the command that you would use to change to your Desktop folder.
----------

cd ~/Desktop

==========
4. What's the absolute path to your home directory?
----------
/Users

==========
5. What's the absolute path to your Desktop directory?
----------
/Users/gazelle/Desktop

==========
6. What's the absolute path to your Desktop directory?
----------
/Users/gazelle/Desktop

==========
7. If you're in your home directory, what's the relative path to your Desktop directory?
----------
/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 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 Destop

==========
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 Users

==========
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?
----------
up arrow
==========
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:

a. Create the following directory structure on...
b. A folder called my-stuff should be on your desktop. There should be two additional directories within it: archived, current.
c. Determine the name of your computer.
d. Create another directory in my-stuff that's the same name as your computer.
e. Determine which folder in my-stuff was created most recently by using ls. (there are some flags that help with this).
f. Remove that folder.
g. Show all of the commands that you used to complete the above exercise. (for example, how did you determine which folder in my-stuff was the most recent?). Use the command: history ... to help you remember what you did! Paste the commands below.
----------