Skip to content

Commit 7ebc806

Browse files
committed
ok
1 parent 944a8f7 commit 7ebc806

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

hello/index.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ You have seen it in lecture, and now you're ready to try running it yourself.
1616

1717
## Dive into your development environment
1818

19+
**Mac OS**
20+
1921
Go to your Terminal. You should find that its "prompt" resembles the below.
2022

2123
jharvard@somewhere ~ %
@@ -42,6 +44,34 @@ Now, open Atom, point to the File menu and choose New. This will open a new edit
4244

4345
In your new file, type the C code for "Hello, World" as seen above. Save it once more.
4446

47+
**Windows***
48+
49+
Go to your Terminal. You should find that its "prompt" resembles the below.
50+
51+
jharvard@somewhere ~ %
52+
53+
Click inside of that terminal window and then type (on Mac OS):
54+
55+
mkdir /mnt/c/Users/<Windows User Name>/Documents/Development
56+
57+
followed by Enter in order to make a directory (i.e., folder) called `Development` inside of your Documents directory.
58+
59+
Here on out, to execute (i.e., run) a command means to type it into a terminal window and then hit Enter. Commands are "case-sensitive," so be sure not to type in uppercase when you mean lowercase or vice versa.
60+
61+
Now execute
62+
63+
cd /mnt/c/Users/<Windows User Name>/Documents/Development
64+
65+
to move yourself into (i.e., open) that directory. Your prompt should now resemble the below.
66+
67+
Development %
68+
69+
If not, retrace your steps and see if you can determine where you went wrong.
70+
71+
Now, open Atom, point to the File menu and choose New. This will open a new editor with a blank "Untitled1" file in it. First thing to do is to give it a name and save it into your new directory. Press **CTRL-S** or **Cmd-S** to open the file dialog. For **Filename**, type `hello.c`. Then below, choose (click) the `Documents`, then the `Development` folder that you just created and click on **Save**.
72+
73+
In your new file, type the C code for "Hello, World" as seen above. Save it once more.
74+
4575

4676
## Listing files
4777

0 commit comments

Comments
 (0)