Carry out all of the following tasks using only the command line! As is usually the case, you're welcome to use any resource you can find (except another student, of course) to reach your answer.
Complete each of following steps, in order :
-
Create a new directory called
quiz
inside the root directory of this repository (cli-08-assessment
). -
Create a new file inside
quiz
calledrhyme.txt
. -
Open
rhyme.txt
using Sublime (via the terminal) and add the following text:
"The rain in Spain falls mainly in the plain."
Once you've done this, save the file and quit.
-
Make a directory inside
quiz
calledtemp
. Inside it, create a new blank file calledtemp.md
. -
Navigate back up to
quiz
, and delete thetemp
directory (withtemp.md
inside of it). Usels
to show the contents ofquiz
- wastemp
deleted?
Open up this file in your text editor, and write your answers below (where indicated).
- Is
/Users/blah_blah/Desktop
a relative path or an absolute path? How do you know?
Abosolute, because / is shorthand for the root directory, and we're given a set of folders that follow.'
- Suppose that we're working on a project, and we want to use a font that's being hosted somewhere on the internet. Would we use an absolute or relative path to refer to it? Why?
Absolute. If you're referencing something on the internet you'll want to use an absolute directory because it doesn't live within your project. The only issue with this is if they decide to move the file (font in this case) you're screwed.'
- Now suppose that we have an image file living inside our project. Would we refer to it with an absolute or relative path? Why?
Relative. In order to keep the path up to date in the event we move the file, we'd want to use a relative path.'
You're done! Refer back to README.md.