Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions lab-02-part-01-paths-review.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down