-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtutorial.json
More file actions
4641 lines (4641 loc) · 160 KB
/
tutorial.json
File metadata and controls
4641 lines (4641 loc) · 160 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"id": "freeCodeCamp/learn-bash-by-building-a-boilerplate:v1.0.0",
"version": "2.0.0",
"summary": {
"title": "Learn Bash by Building a Boilerplate",
"description": "> Welcome to the Introduction to Bash lessons. I know it's scary, but you can do this!"
},
"config": {
"setup": {
"commands": [
"./freeCodeCamp/setup.sh",
"cd freeCodeCamp && npm install"
],
"commits": [
"505ee3be482841a2fae70e3cb4119dbeb5428291"
]
},
"testRunner": {
"command": "npm run programmatic-test",
"args": {
"tap": "--reporter=mocha-tap-reporter"
},
"directory": "freeCodeCamp"
},
"repo": {
"uri": "https://github.com/freeCodeCamp/learn-bash-by-building-a-boilerplate",
"branch": "v2.0.0"
},
"continue": {
"commands": [
"./freeCodeCamp/setup.sh",
"./freeCodeCamp/reset.sh"
]
},
"reset": {
"commands": [
"./freeCodeCamp/setup.sh",
"./freeCodeCamp/reset.sh"
]
},
"dependencies": [
{
"name": "node",
"version": ">=10"
}
],
"webhook": {
"url": "https://api.freecodecamp.org/coderoad-challenge-completed",
"events": {
"init": false,
"reset": false,
"step_complete": false,
"level_complete": false,
"tutorial_complete": true
}
}
},
"levels": [
{
"id": "5",
"title": "Restart Terminal",
"summary": "",
"content": "",
"steps": [
{
"id": "5.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"2d4ec65ef9a39bb38764d3c59f6390b79ec3f712"
]
},
"content": "**The first thing you need to do is start the terminal.** Do that by clicking the \"hamburger\" menu at the top left of the screen, going to the \"terminal\" section, and clicking \"new terminal\". Once you open a new one, type `echo hello terminal` into the terminal and press enter.",
"hints": [
"Capitalization matters",
"If the tests don't run automatically, try typing `exit` into the terminal and redoing the instructions"
]
}
]
},
{
"id": "10",
"title": "Print Working Directory",
"summary": "",
"content": "",
"steps": [
{
"id": "10.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"24caa82d724838c8a94872803763167a810f6831"
]
},
"content": "What you see in the terminal below is a folder (or directory) on this machine. Type `pwd` into the terminal and press enter to see the path of the folder. `pwd` stands for \"print working directory\".",
"hints": [
"Type `pwd` into the terminal and press enter",
"Make sure you are in the `project` folder when you enter the command",
"Enter `cd /workspace/project` to get to the `project` folder if you aren't there"
]
}
]
},
{
"id": "20",
"title": "List",
"summary": "",
"content": "",
"steps": [
{
"id": "20.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"492a440980004b2e514529dd1d5114dbd5ccca3d"
]
},
"content": "The output tells you where the folder you are in is located. You are in the `project` folder, which is in the `workspace` folder. Type `ls` into the terminal to see what's in this folder. `ls` stands for \"list\".",
"hints": [
"Type `ls` into the terminal and press enter",
"Make sure you are in the `project` folder when you enter the command",
"Enter `cd /workspace/project` to get to the `project` folder if you aren't there"
]
}
]
},
{
"id": "30",
"title": "Change Directory",
"summary": "",
"content": "",
"steps": [
{
"id": "30.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"6cd8dc1d8e7f0b63873c70d93a84f755e13eaa6c"
]
},
"content": "The output is showing everything in this folder. There's one folder in here. You can use `cd <folder_name>` to go into a folder. `cd` stands for \"change directory\". Change to the `freeCodeCamp` directory.",
"hints": [
"Capitalization matters",
"Type `cd freeCodeCamp` into the terminal and press enter",
"Make sure you start in the `project` folder first",
"Enter `cd /workspace/project` to get to the `project` folder if you aren't there"
]
}
]
},
{
"id": "40",
"title": "Print Working Directory",
"summary": "",
"content": "",
"steps": [
{
"id": "40.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"4b3aafa3e91a2dc456a387b4fa44c30d7b07bff8"
]
},
"content": "You are in the `freecodecamp` folder now. You may have noticed that the prompt changed to include it. Print the working directory of the `freeCodeCamp` folder to see the full path of where you are.",
"hints": [
"Use the \"print working directory\" command",
"Type `pwd` into the terminal and press enter",
"Make sure you are in the `freeCodeCamp` folder first",
"Enter `cd /workspace/project/freeCodeCamp` to get to the `freeCodeCamp` folder if you aren't there"
]
}
]
},
{
"id": "50",
"title": "List",
"summary": "",
"content": "",
"steps": [
{
"id": "50.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"cbc096094ebeabbe5cb7999710d0d6421dfca774"
]
},
"content": "You can see the path of the `freeCodeCamp` folder. It's in the `project` folder you were just in. List the contents of the `freeCodeCamp` folder to see what's here.",
"hints": [
"Use the \"list\" command",
"Try typing `ls` into the terminal",
"Make sure you are in the `freeCodeCamp` folder first",
"Enter `cd /workspace/project/freeCodeCamp` to get to the `freeCodeCamp` folder if you aren't there"
]
}
]
},
{
"id": "60",
"title": "Change Directory",
"summary": "",
"content": "",
"steps": [
{
"id": "60.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"483fda855e463d48c0c1eb62963256e1c05e36d9"
]
},
"content": "There's several folders and files here. The folders are blue or green and the files include their extension. Next, change to that `test` directory.",
"hints": [
"Use the \"change directory\" command",
"Here's an example: `cd folder-name`",
"Try entering `cd test`",
"Make sure you enter the command from the `freeCodeCamp` folder",
"Enter `cd /workspace/project/freeCodeCamp` to get to the `freeCodeCamp` folder if you aren't there"
]
}
]
},
{
"id": "70",
"title": "Print Working Directory",
"summary": "",
"content": "",
"steps": [
{
"id": "70.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"b2d66ea82b6327937c644456d03832f587dda5f1"
]
},
"content": "You can see you are in the `test` folder now. It shows `test` in the prompt. Print the full path of this directory. Remember that \"folder\" and \"directory\" are the same thing.",
"hints": [
"Use the \"print working directory\" command",
"Type `pwd` into the terminal",
"Make sure you are in the `test` folder first",
"Enter `cd /workspace/project/freeCodeCamp/test` to get to the `test` folder if you aren't there"
]
}
]
},
{
"id": "80",
"title": "List",
"summary": "",
"content": "",
"steps": [
{
"id": "80.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"4777d5f16533ea439d866dd3cc9d109a61ce829e"
]
},
"content": "That's the path to the `test` folder, it's in the `freeCodeCamp` folder. **List** the contents of this folder.",
"hints": [
"Use the \"list\" command",
"Type `ls` into the terminal",
"Make sure you are in the `test` folder first",
"Enter `cd /workspace/project/freeCodeCamp/test` to get to the `test` folder if you aren't there"
]
}
]
},
{
"id": "90",
"title": "Change Directory",
"summary": "",
"content": "",
"steps": [
{
"id": "90.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"58747cbde2576738f5372ad0552ad4622e09f118"
]
},
"content": "These are all files. There's no more folders to go into here. You can use `cd ..` to go back a folder level. The two dots will take you back one level. Go back to the `freeCodeCamp` folder.",
"hints": [
"Use the \"change directory\" command",
"Type `cd ..` into the terminal end press enter",
"Type the command from the `test` folder",
"Enter `cd /workspace/project/freeCodeCamp/test` to get to the `test` folder if you aren't there"
]
}
]
},
{
"id": "100",
"title": "List",
"summary": "",
"content": "",
"steps": [
{
"id": "100.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"4244eb7c9c3c8f8e2c4382d22b4078d01d7d604f"
]
},
"content": "`test` got removed from the prompt since you left that folder and you're back in the `freeCodeCamp` folder. List the contents of what's here to remind yourself.",
"hints": [
"Use the \"list\" command",
"Type `ls` into the terminal",
"Make sure you are in the `freeCodeCamp` folder first",
"Enter `cd /workspace/project/freeCodeCamp` to get to the `freeCodeCamp` folder if you aren't there"
]
}
]
},
{
"id": "110",
"title": "More",
"summary": "",
"content": "",
"steps": [
{
"id": "110.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"1eac443c5ff5061012873a76606d54ff0111106d"
]
},
"content": "There's the `test` folder you were just in. You can see what's in a file with `more <filename>`. Use it to view what's in the `package.json` file.",
"hints": [
"Type `more package.json` into the terminal",
"Press enter until you have seen the whole file",
"Make sure you are in the `freeCodeCamp` folder first",
"Enter `cd /workspace/project/freeCodeCamp` to get to the `freeCodeCamp` folder if you aren't there"
]
}
]
},
{
"id": "120",
"title": "Clear",
"summary": "",
"content": "",
"steps": [
{
"id": "120.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"8a03ac3f76573e8b68c40abe4b51e3cdb8985f48"
]
},
"content": "It looks like a JSON object. You can empty the terminal with `clear`. The terminal looks a little cluttered, why don't you clear it.",
"hints": [
"Commands are case sensitive",
"Enter `clear` into the terminal"
]
}
]
},
{
"id": "130",
"title": "List",
"summary": "",
"content": "",
"steps": [
{
"id": "130.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"7f6c6373c9be4dbc398714d8f1bd86774cd22a11"
]
},
"content": "Now you have a fresh screen :smile: List what's in here again.",
"hints": [
"Use the \"list\" command",
"Enter `ls` into the terminal",
"Make sure you are in the `freeCodeCamp` folder first",
"Enter `cd /workspace/project/freeCodeCamp` to get to the `freeCodeCamp` folder if you aren't there"
]
}
]
},
{
"id": "140",
"title": "Change Directory",
"summary": "",
"content": "",
"steps": [
{
"id": "140.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"bef1e08550a2c6d12cd0e5ef9f600601e3885456"
]
},
"content": "You checked out the `test` folder and the `package.json` file. What next? Why don't you go into that `node_modules` directory.",
"hints": [
"Use the \"change directory\" command",
"Here's an example: `cd <folder_name>`",
"Enter `cd node_modules` into the terminal",
"Enter `cd /workspace/project/freeCodeCamp` to get back to the `freeCodeCamp` folder and try again"
]
}
]
},
{
"id": "150",
"title": "List",
"summary": "",
"content": "",
"steps": [
{
"id": "150.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"db0f37a4c90a5c5d36dd7c6ae69572bb78ec9353"
]
},
"content": "Now the prompt includes `node_modules` since that's where you are. List what's in the folder.",
"hints": [
"Use the \"list\" command",
"Enter `ls` into the terminal",
"Make sure you are in the `node_modules` folder first",
"Enter `cd /workspace/project/freeCodeCamp/node_modules` to get to the `node_modules` folder if you aren't there"
]
}
]
},
{
"id": "160",
"title": "Long List Format",
"summary": "",
"content": "",
"steps": [
{
"id": "160.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"56b7557197ed92ea7588bcb05072fe99ab4b3419"
]
},
"content": "That's a lot of folders. You can add a **flag** to a command to use it different ways like this: `ls <flag>`. List the contents of the `node_modules` folder in \"long list format\". Do that by adding the `-l` flag to the \"list\" command.",
"hints": [
"Use the \"list\" command",
"Add the `-l` flag to the command",
"That's a lowercase letter `l`, not the number `1`",
"Enter `ls -l` into the terminal",
"Make sure you are in the `node_modules` folder first",
"Enter `cd /workspace/project/freeCodeCamp/node_modules` to get to the `node_modules` folder if you aren't there"
]
}
]
},
{
"id": "170",
"title": "Change Directory",
"summary": "",
"content": "",
"steps": [
{
"id": "170.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"51cd1239a9133aea289cc41be2908fc2b0e143a7"
]
},
"content": "It is showing more details about each item in here and it's a little easier to read. One of the folders is named `has`, why don't you change into it.",
"hints": [
"Use the \"change directory\" command",
"Enter `cd has` into the terminal",
"Enter the command from the `node_modules` folder",
"Enter `cd /workspace/project/freeCodeCamp/node_modules` to get to the `node_modules` folder if you aren't there"
]
}
]
},
{
"id": "180",
"title": "List",
"summary": "",
"content": "",
"steps": [
{
"id": "180.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"ea13c16903e93e0e4d376d710ef61604e3a74526"
]
},
"content": "You are now in the `has` folder. List its contents.",
"hints": [
"Use the \"list\" command",
"Enter `ls` into the terminal",
"Enter the command from the `has` folder first",
"Enter `cd /workspace/project/freeCodeCamp/node_modules/has` to get to the `has` folder if you aren't there"
]
}
]
},
{
"id": "181",
"title": "More",
"summary": "",
"content": "",
"steps": [
{
"id": "181.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"582d435c9c79aa44f44dae61de6b58f9b2d994ac"
]
},
"content": "There's a few files and folders here. Can you tell the difference? Take a look at **more** of that `README.md` file.",
"hints": [
"Commands and filenames are case sensitive",
"Use the \"more\" command",
"Enter `more README.md` into the terminal",
"Press \"enter\" until you have seen the whole file",
"Make sure you are in the `has` folder first",
"Enter `cd /workspace/project/freeCodeCamp/node_modules/has` to get to the `has` folder if you aren't there"
]
}
]
},
{
"id": "182",
"title": "List",
"summary": "",
"content": "",
"steps": [
{
"id": "182.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"c1d5af45392f9597c0df2fe337452e366a814a82"
]
},
"content": "Nothing noteworthy in there. You can't see what's in the here anymore, list the contents again.",
"hints": [
"Use the \"list\" command",
"Enter `ls` into the terminal",
"Make sure you are in the `has` folder first",
"Enter `cd /workspace/project/freeCodeCamp/node_modules/has` to get to the `has` folder if you aren't there"
]
}
]
},
{
"id": "183",
"title": "More",
"summary": "",
"content": "",
"steps": [
{
"id": "183.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"923bb988a6954ac308d273903f3846ba611f2a28"
]
},
"content": "That one file doesn't appear to have an extension. Strange. Take a look at **more** of the that \"license\" file that doesn't show an extension.",
"hints": [
"Use the \"more\" command",
"Enter `more LICENSE-MIT` into the terminal",
"Press \"enter\" until you have seen the whole file",
"Make sure you are in the `has` folder first",
"Enter `cd /workspace/project/freeCodeCamp/node_modules/has` to get to the `has` folder if you aren't there"
]
}
]
},
{
"id": "184",
"title": "Clear",
"summary": "",
"content": "",
"steps": [
{
"id": "184.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"4b73c288d74769b8cd2fb824633c659415fbe47d"
]
},
"content": "Pretend you read all that. It looks a little messy in here again so why don't you clear the terminal.",
"hints": [
"Use the \"clear\" command",
"Enter `clear` into the terminal"
]
}
]
},
{
"id": "185",
"title": "List",
"summary": "",
"content": "",
"steps": [
{
"id": "185.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"38ba5a371fccce98548f3e6b6d001bc18eca2391"
]
},
"content": "Better. Remind yourself what's in here with the list command.",
"hints": [
"Use the \"list\" command",
"Enter `ls` into the terminal",
"Make sure you are in the `has` folder first",
"Enter `cd /workspace/project/freeCodeCamp/node_modules/has` to get to the `has` folder if you aren't there"
]
}
]
},
{
"id": "190",
"title": "Change Directory",
"summary": "",
"content": "",
"steps": [
{
"id": "190.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"d44166699d682b084c20cc1644b4759c99524170"
]
},
"content": "Go into that `src` directory to see what you can find in there.",
"hints": [
"Use the \"change directory\" command",
"Enter `cd src` into the terminal",
"Make sure you are in the `has` folder first",
"Enter `cd /workspace/project/freeCodeCamp/node_modules/has` to get to the `has` folder if you aren't there"
]
}
]
},
{
"id": "200",
"title": "Print Working Directory",
"summary": "",
"content": "",
"steps": [
{
"id": "200.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"7e73579eb5371078addb68a37a16800f83cfa404"
]
},
"content": "View the full path of this folder.",
"hints": [
"Use the \"print working directory\" command",
"Enter `pwd` into the terminal",
"Make sure you are in the `src` folder",
"Enter `cd /workspace/project/freeCodeCamp/node_modules/has/src` to get to the `src` folder if you aren't there"
]
}
]
},
{
"id": "210",
"title": "List",
"summary": "",
"content": "",
"steps": [
{
"id": "210.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"1ba1203099fa7c611dbd4caab9462876dd6d8da7"
]
},
"content": "Getting deeper still. You can see that each new folder has a `/` in front of it. Take a look at what's in this folder.",
"hints": [
"Use the \"list\" command",
"Enter `ls` into the terminal",
"Make sure you are in the `src` folder first",
"Enter `cd /workspace/project/freeCodeCamp/node_modules/has/src` to get to the `src` folder if you aren't there"
]
}
]
},
{
"id": "220",
"title": "More",
"summary": "",
"content": "",
"steps": [
{
"id": "220.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"8cd2f6d5b230ce00dc8a8b80088071df5795e0ec"
]
},
"content": "Only one file here. Show me what's in it with `more`.",
"hints": [
"Use the `more` command",
"Here's and example: `more filename`",
"Enter `more index.js` into the terminal",
"Press enter until you've seen all the content",
"Make sure you are in the `src` folder first",
"Enter `cd /workspace/project/freeCodeCamp/node_modules/has/src` to get to the `src` folder if you aren't there"
]
}
]
},
{
"id": "230",
"title": "Change Directory",
"summary": "",
"content": "",
"steps": [
{
"id": "230.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"e6c27aef0dfe4fbd414aa430f1e10cf0649c2d7e"
]
},
"content": "It's some JavaScript :smile: I think you've fooled around enough. Why don't you navigate out of here. Change back to the `has` directory.",
"hints": [
"Use the \"change directory\" command",
"Add `..` after `cd` to go back a folder",
"Type `cd ..` into the terminal",
"Make sure you are in the `src` folder first",
"Enter `cd /workspace/project/freeCodeCamp/node_modules/has/src` to get to the `src` folder if you aren't there"
]
}
]
},
{
"id": "240",
"title": "Change Directory",
"summary": "",
"content": "",
"steps": [
{
"id": "240.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"d32460d0090b2aad1336d8aec6acbdc3334869fd"
]
},
"content": "You're getting pretty good. Change back to the `node_modules` directory.",
"hints": [
"Use the same `cd` command as the last lesson",
"You can press the up arrow to cycle through previous commands",
"Type `cd ..` into the terminal",
"Make sure you are in the `has` folder first",
"Enter `cd /workspace/project/freeCodeCamp/node_modules/has` to get to the `has` folder if you aren't there"
]
}
]
},
{
"id": "250",
"title": "Change Directory",
"summary": "",
"content": "",
"steps": [
{
"id": "250.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"d5f5fa41b80dfc7c92eecd8f35ca5a1c1e530d61"
]
},
"content": "You can go back two folders with `cd ../..`. Each set of dots represents another folder level. Go back to the `project` directory from the `node_modules` directory.",
"hints": [
"Be sure to go back two folders with one command",
"Type `cd ../..` into the terminal from the `node_modules` folder",
"Make sure you go from `node_modules` to `project`",
"Enter `cd /workspace/project/freeCodeCamp/node_modules` to get to the `node_modules` folder if you aren't there"
]
}
]
},
{
"id": "260",
"title": "List",
"summary": "",
"content": "",
"steps": [
{
"id": "260.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"225dd92b8a051165bf4693e4288eaaaaee530ed9"
]
},
"content": "You are back in the `project` folder where you started. List what's in here again.",
"hints": [
"Use the \"list\" command",
"Enter `ls` into the terminal",
"Make sure you are in the `project` folder first",
"Enter `cd /workspace/project` to get to the `project` folder if you aren't there"
]
}
]
},
{
"id": "270",
"title": "Clear",
"summary": "",
"content": "",
"steps": [
{
"id": "270.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"6c0e8d839d04555f0cda7822db4ed9295e82040d"
]
},
"content": "That's right. Why don't you get a fresh start by clearing the terminal.",
"hints": [
"Use the \"clear\" command",
"Enter `clear` into the terminal"
]
}
]
},
{
"id": "280",
"title": "Make Directory",
"summary": "",
"content": "",
"steps": [
{
"id": "280.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"93a228fd612193b094638df3e7a043680542c13c"
]
},
"content": "You will be making a website boilerplate. You can make a new folder with `mkdir <folder_name>`. `mkdir` stands for \"make directory\". Make a `website` directory in this `project` folder. Remember that \"directory\" and \"folder\" mean the same thing.",
"hints": [
"Enter `mkdir website` into the terminal",
"Make sure to make it in the `project` folder",
"Don't try to create it with a different method",
"Make sure you are in the `project` folder first",
"Enter `cd /workspace/project` to get to the `project` folder if you aren't there"
]
}
]
},
{
"id": "285",
"title": "List",
"summary": "",
"content": "",
"steps": [
{
"id": "285.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"19444ff10c7df1f623e07c0f1c59239835f4bcec"
]
},
"content": "List what's here to make sure it got created.",
"hints": [
"Use the \"list\" command",
"Enter `ls` into the terminal",
"Make sure you are in the `project` folder first",
"Enter `cd /workspace/project` to get to the `project` folder if you aren't there",
"If you used the reset button, you may need to enter the above command to get to the correct folder even if it looks like you're already there"
]
}
]
},
{
"id": "290",
"title": "Change Directory",
"summary": "",
"content": "",
"steps": [
{
"id": "290.1",
"setup": {
"watchers": [
"../.bash_history"
],
"commits": [
"fef9fc55f1f9c28ebe63adde377bdd3a122c184e"
]
},
"content": "It worked. The website files will be in the new directory. Change to the `website` directory so you can start creating them.",
"hints": [
"Use the \"change directory\" command",
"Enter `cd website` into the terminal",
"Enter the command from the `project` folder",
"Enter `cd /workspace/project` to get to the `project` folder if you aren't there",
"If you used the reset button, you may need to enter the above command to get to the correct folder even if it looks like you're already there"
]
}
]
},
{
"id": "300",
"title": "List",