For Macs: * Open the “Terminal” app (Applications > Utilities > Terminal) * Optionally, download and install iTerm 2, which is a replacement for the terminal app that is more configurable.
For Windows: * Open the “Command Prompt” application. * For a better experience, try Console.
Get familiar with the basic commands on the terminal!
When copying the following code snippets, DO NOT include the $
this is a universal symbol to indicate that the anything following the ‘$’ should be entered into the command line
From your command line, navigate to your class folder (i.e. the folder named jsd)
Navigate to your jsd
from your Root Directory. cd ~
and then cd Documents/jsd
(assuming your class folder is named ‘jsd’ and located in your Documents
folder)
Create a directory named command_line_tutorial
$ mkdir command_line_tutorial
Change into this directory
$ cd command_line_tutorial
Create a file named “index.html” using the touch command.
$ touch text1.txt text2.txt
$ atom .
subl
if you are using sublimeCreate a folder named test_folder
$ mkdir test_folder
Now remove it
$ rmdir test_folder
Complete the following instructions below in the Terminal application.
Create a folder in your jsd/lesson_01_files
directory named my_site
Once inside that folder, create three empty files:
goals.html
worries.html
index.html
Open the my_site
folder with in your text editor
In the respective files (goals.html and worries.html), write your top three goals and top three worries for this course.
Paste the following contents into index.html:
<html>
<head>
<title>My Site </title>
</head>
<body>
<a href="goals.html"><img src="http://i.imgur.com/dosK05U.gif" /></a>
<br>
<a href="worries.html"><img src="http://i.imgur.com/2s0HwpM.gif" /></a>
</body>
</html>
Use your new knowledge of the command line to create a lesson folder for each of the remaining lessons in the course inside your jsd folder
There are 20 lessons in the course and the lesson names should use the following format: lesson_02_files
, lesson_03_files
, etc
The last class should be named lesson_19_files
(we started counting at 00)