1
00:00:00,630 --> 00:00:08,420
OK, so now let's get started on S. two, lesson five, lesson five is intro to Terminal.

2
00:00:08,760 --> 00:00:11,000
So what is terminal console shell?

3
00:00:11,040 --> 00:00:11,970
What are these things mean?

4
00:00:12,930 --> 00:00:23,160
Basically, a terminal is a location where you can execute a line of command to your computer and it

5
00:00:23,160 --> 00:00:25,220
will do it will execute that command.

6
00:00:25,470 --> 00:00:31,720
So the word terminal comes from terminate, which is just meaning the end of a communication.

7
00:00:32,070 --> 00:00:40,240
So if you write a bunch of instructions and then you stop, then that's the determination of that communication.

8
00:00:40,740 --> 00:00:45,370
And so we've built terminals into computers so that we can interact with them.

9
00:00:45,570 --> 00:00:48,900
The very first computer commands, we're done just in text form.

10
00:00:49,170 --> 00:00:57,060
So we have a console that looks something like this where you have a list of where your files are.

11
00:00:57,060 --> 00:01:03,270
So you have a drive, a hard drive, where you keep your files, you'll have certain folders and then

12
00:01:03,270 --> 00:01:07,110
you'll have certain files in there inside your folders.

13
00:01:07,110 --> 00:01:09,710
You could have a bunch of these different files.

14
00:01:09,720 --> 00:01:14,710
And this is an example of a react project node modules package dot.

15
00:01:14,760 --> 00:01:16,380
Jason, you're not lock.

16
00:01:16,860 --> 00:01:22,440
And these are files that you'll see a lot in react projects in JavaScript, projects on node.

17
00:01:23,520 --> 00:01:26,750
And then the command line is where you can execute these commands.

18
00:01:26,790 --> 00:01:33,530
So this, for example, Elst means to list all of the stuff in the folder.

19
00:01:34,050 --> 00:01:36,300
So that's the way I think of it.

20
00:01:37,260 --> 00:01:40,950
List stuff and it's going to show you the contents of the folder.

21
00:01:42,060 --> 00:01:49,740
So you can obviously manage your file browser like you have finder on Mac or you have the Windows Explorer

22
00:01:50,100 --> 00:01:52,620
on Windows and there you go.

23
00:01:52,620 --> 00:01:58,560
So you can do that in those graphical user interfaces, but using the command line, you actually have

24
00:01:58,560 --> 00:01:59,520
a lot more freedom.

25
00:02:00,570 --> 00:02:02,100
So why should we learn the terminal?

26
00:02:02,100 --> 00:02:08,520
It's because those graphical user interface programs to manage your files won't let you do everything

27
00:02:08,520 --> 00:02:15,720
that you need to do and also won't let you access a bunch of commands that bash in these terminal languages

28
00:02:15,720 --> 00:02:16,590
will let you do.

29
00:02:17,680 --> 00:02:26,590
OK, so the console is basically the idea of a, you know, some piece of furniture that will have a

30
00:02:26,590 --> 00:02:31,810
screen that will have some information on it, the very first computers were only consoles.

31
00:02:31,840 --> 00:02:36,820
There were essentially terminals because all you could do with a computer was to give it text commands

32
00:02:36,820 --> 00:02:38,530
and it would give you text responses.

33
00:02:39,430 --> 00:02:44,710
And eventually we had graphics command of computers and we could go a lot further.

34
00:02:45,010 --> 00:02:48,240
And then the terminal and the console idea became a little bit separate.

35
00:02:48,970 --> 00:02:55,630
But the reason we should learn terminal is so that we can manage our projects very much more easily,

36
00:02:55,630 --> 00:03:00,910
execute certain commands to run our projects and test our projects and go from there.

37
00:03:01,390 --> 00:03:07,950
There's also this term called Shell, and a Shell is basically a little program that's run in the terminal.

38
00:03:08,410 --> 00:03:13,120
And so the shell will generate the output and pass it back to the terminal for the display.

39
00:03:13,210 --> 00:03:19,870
And these amount to different programming language is essentially the one we're going to concern ourselves

40
00:03:19,870 --> 00:03:20,980
with is Basche.

41
00:03:21,430 --> 00:03:28,630
But there's also the shell and a bunch of other Schell's windows has power shell and a lot of these

42
00:03:28,630 --> 00:03:31,930
integrate features that that are built into Linux.

43
00:03:31,930 --> 00:03:37,420
And Bash Bash is the most recent Linux programming language for the terminal.

44
00:03:38,280 --> 00:03:42,100
OK, so let's take a look at how these work in our code base.

45
00:03:44,040 --> 00:03:46,710
Let's start with less than five.

46
00:03:50,010 --> 00:03:55,380
OK, so let's start with lesson five, and here is our terminal so you can get to it if you just go

47
00:03:55,380 --> 00:03:58,140
up to here in code and hit new terminal.

48
00:03:59,610 --> 00:04:03,060
And we can see where we are in this little terminal here.

49
00:04:05,250 --> 00:04:12,630
We can just list what we've got in here in this folder, we've got Section two, OK, if we want to

50
00:04:12,630 --> 00:04:17,960
go by one directory, we can do CD change directory space, dot, dot.

51
00:04:19,290 --> 00:04:23,790
And if we wanted to go down further into the next directory, we could do that.

52
00:04:23,930 --> 00:04:31,590
But we just choose a CD and then you can put any part of of the command and then tab and then you'll

53
00:04:32,040 --> 00:04:32,850
be able to go in there.

54
00:04:32,850 --> 00:04:36,810
So CD Jazz will take you down into where we were before.

55
00:04:38,040 --> 00:04:39,870
Let's CD into Section two.

56
00:04:41,580 --> 00:04:47,280
And then, see, we've got OK, we've got these lessons here planned out for Section two and then we

57
00:04:47,280 --> 00:04:48,740
can go into one specifically.

58
00:04:48,750 --> 00:04:50,310
So let's go into lesson five.

59
00:04:50,620 --> 00:04:52,620
Let's cut into lesson.

60
00:04:55,420 --> 00:04:56,290
Listen, five.

61
00:04:58,550 --> 00:05:04,070
And look again, and we've got the index, HTML and index stats that we have right here.

62
00:05:04,380 --> 00:05:04,730
OK.

63
00:05:05,760 --> 00:05:09,700
So this is our terminal and we're using Basche if you want to get back on windows.

64
00:05:09,720 --> 00:05:11,040
It's a pretty easy process.

65
00:05:12,050 --> 00:05:16,640
To get back on Windows, we're going to do just get bash windows.

66
00:05:18,140 --> 00:05:22,770
It's going to download both git and bash, so that's that's what we're going to use.

67
00:05:22,940 --> 00:05:27,050
The reason we want to do that is not just to have bash, but also have the get commands, which we're

68
00:05:27,050 --> 00:05:28,520
going to talk about in the next lesson.

69
00:05:29,330 --> 00:05:32,860
So you could just download and then you're going to get an Excel file.

70
00:05:32,870 --> 00:05:39,980
And then once you install it and then open bar code, you should have Basche here in this dropdown.

71
00:05:40,370 --> 00:05:45,230
And that way you'll be able to use bash commands to navigate your files.

72
00:05:45,710 --> 00:05:46,070
OK.

73
00:05:50,910 --> 00:05:56,580
And so the basic instructions that we're going to have are things like list.

74
00:05:57,800 --> 00:06:02,120
And then CD, if you want to go back to your root directory, you can do CD space till.

75
00:06:03,500 --> 00:06:09,470
And if you want to get down into an additional directory, do the CD and then you say the name of the

76
00:06:09,470 --> 00:06:09,920
folder.

77
00:06:11,660 --> 00:06:19,740
If you want to create a file you do touch, then you could do touch test and just watch what happens.

78
00:06:19,760 --> 00:06:24,980
So as soon as we do that, it showed up right here and we can add something to it.

79
00:06:25,250 --> 00:06:26,030
Hello.

80
00:06:27,220 --> 00:06:29,870
And save it, so we've just got a text file right here.

81
00:06:30,700 --> 00:06:32,380
What if we want to get rid of that text file?

82
00:06:32,620 --> 00:06:33,810
What's going to what are we going to do?

83
00:06:33,940 --> 00:06:37,060
We could do remove be very careful with this.

84
00:06:37,060 --> 00:06:39,860
R.M. is going to completely remove that file.

85
00:06:39,910 --> 00:06:42,040
It's not going to go into a recycle bin.

86
00:06:42,670 --> 00:06:47,340
So it's just going to disappear from the folder completely with no easy way to get it back.

87
00:06:47,830 --> 00:06:50,620
So that's just going to remove test text.

88
00:06:51,970 --> 00:06:52,540
We did it.

89
00:06:52,660 --> 00:06:58,000
What do we see deleted now it's deleted, so we can't use it anymore and it's gone.

90
00:07:02,520 --> 00:07:09,540
All right, so that's basically it for terminal, so the main things to know are you can also do make

91
00:07:09,540 --> 00:07:10,350
directory.

92
00:07:11,860 --> 00:07:18,010
And you can make a small directory, we'll make a test directory, and then you can see we now have

93
00:07:18,010 --> 00:07:20,350
a test folder in here that has nothing in it.

94
00:07:21,830 --> 00:07:29,690
And if we want to remove test, we can and we need to remove it as a directory, so we do.

95
00:07:36,640 --> 00:07:42,160
OK, you can do our MRF to remove a directory, that is it.

96
00:07:42,190 --> 00:07:43,870
So let's go ahead and that.

97
00:07:44,290 --> 00:07:49,840
So that's our review of the terminal and the console and the shell, the terminal console.

98
00:07:50,590 --> 00:07:57,750
And now for the next lesson, we're going to get into a crash course on Gett and GitHub.

99
00:07:57,760 --> 00:08:02,820
This is going to be extremely important because we're going to be managing all of our files, using

100
00:08:02,820 --> 00:08:04,290
Git and GitHub.

101
00:08:04,630 --> 00:08:07,660
That's not the only way that you can manage git repositories.

102
00:08:07,660 --> 00:08:12,850
You can there are a number of other things like Firebase and BitBucket and Get Lab.

103
00:08:13,300 --> 00:08:19,120
But GitHub is the biggest one, the easiest way to create a project very quickly in JavaScript and store

104
00:08:19,120 --> 00:08:25,720
it, host it on a server and then be able to execute and run your application online.

105
00:08:26,150 --> 00:08:28,540
OK, so we'll see you in the next video.
