Delete lab-02-part-01-paths-review.txt - #2
Open
jazzy26 wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lab - Paths and Review
Follow the instructions line-by-line.
* "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.