OK, so now let's get started on S. two, lesson five, lesson five is intro to Terminal.
So what is terminal console shell?
What are these things mean?
Basically, a terminal is a location where you can execute a line of command to your computer and it
will do it will execute that command.
So the word terminal comes from terminate, which is just meaning the end of a communication.
So if you write a bunch of instructions and then you stop, then that's the determination of that communication.
And so we've built terminals into computers so that we can interact with them.
The very first computer commands, we're done just in text form.
So we have a console that looks something like this where you have a list of where your files are.
So you have a drive, a hard drive, where you keep your files, you'll have certain folders and then
you'll have certain files in there inside your folders.
You could have a bunch of these different files.
And this is an example of a react project node modules package dot.
Jason, you're not lock.
And these are files that you'll see a lot in react projects in JavaScript, projects on node.
And then the command line is where you can execute these commands.
So this, for example, Elst means to list all of the stuff in the folder.
So that's the way I think of it.
List stuff and it's going to show you the contents of the folder.
So you can obviously manage your file browser like you have finder on Mac or you have the Windows Explorer
on Windows and there you go.
So you can do that in those graphical user interfaces, but using the command line, you actually have
a lot more freedom.
So why should we learn the terminal?
It's because those graphical user interface programs to manage your files won't let you do everything
that you need to do and also won't let you access a bunch of commands that bash in these terminal languages
will let you do.
OK, so the console is basically the idea of a, you know, some piece of furniture that will have a
screen that will have some information on it, the very first computers were only consoles.
There were essentially terminals because all you could do with a computer was to give it text commands
and it would give you text responses.
And eventually we had graphics command of computers and we could go a lot further.
And then the terminal and the console idea became a little bit separate.
But the reason we should learn terminal is so that we can manage our projects very much more easily,
execute certain commands to run our projects and test our projects and go from there.
There's also this term called Shell, and a Shell is basically a little program that's run in the terminal.
And so the shell will generate the output and pass it back to the terminal for the display.
And these amount to different programming language is essentially the one we're going to concern ourselves
with is Basche.
But there's also the shell and a bunch of other Schell's windows has power shell and a lot of these
integrate features that that are built into Linux.
And Bash Bash is the most recent Linux programming language for the terminal.
OK, so let's take a look at how these work in our code base.
Let's start with less than five.
OK, so let's start with lesson five, and here is our terminal so you can get to it if you just go
up to here in code and hit new terminal.
And we can see where we are in this little terminal here.
We can just list what we've got in here in this folder, we've got Section two, OK, if we want to
go by one directory, we can do CD change directory space, dot, dot.
And if we wanted to go down further into the next directory, we could do that.
But we just choose a CD and then you can put any part of of the command and then tab and then you'll
be able to go in there.
So CD Jazz will take you down into where we were before.
Let's CD into Section two.
And then, see, we've got OK, we've got these lessons here planned out for Section two and then we
can go into one specifically.
So let's go into lesson five.
Let's cut into lesson.
Listen, five.
And look again, and we've got the index, HTML and index stats that we have right here.
OK.
So this is our terminal and we're using Basche if you want to get back on windows.
It's a pretty easy process.
To get back on Windows, we're going to do just get bash windows.
It's going to download both git and bash, so that's that's what we're going to use.
The reason we want to do that is not just to have bash, but also have the get commands, which we're
going to talk about in the next lesson.
So you could just download and then you're going to get an Excel file.
And then once you install it and then open bar code, you should have Basche here in this dropdown.
And that way you'll be able to use bash commands to navigate your files.
OK.
And so the basic instructions that we're going to have are things like list.
And then CD, if you want to go back to your root directory, you can do CD space till.
And if you want to get down into an additional directory, do the CD and then you say the name of the
folder.
If you want to create a file you do touch, then you could do touch test and just watch what happens.
So as soon as we do that, it showed up right here and we can add something to it.
Hello.
And save it, so we've just got a text file right here.
What if we want to get rid of that text file?
What's going to what are we going to do?
We could do remove be very careful with this.
R.M. is going to completely remove that file.
It's not going to go into a recycle bin.
So it's just going to disappear from the folder completely with no easy way to get it back.
So that's just going to remove test text.
We did it.
What do we see deleted now it's deleted, so we can't use it anymore and it's gone.
All right, so that's basically it for terminal, so the main things to know are you can also do make
directory.
And you can make a small directory, we'll make a test directory, and then you can see we now have
a test folder in here that has nothing in it.
And if we want to remove test, we can and we need to remove it as a directory, so we do.
OK, you can do our MRF to remove a directory, that is it.
So let's go ahead and that.
So that's our review of the terminal and the console and the shell, the terminal console.
And now for the next lesson, we're going to get into a crash course on Gett and GitHub.
This is going to be extremely important because we're going to be managing all of our files, using
Git and GitHub.
That's not the only way that you can manage git repositories.
You can there are a number of other things like Firebase and BitBucket and Get Lab.
But GitHub is the biggest one, the easiest way to create a project very quickly in JavaScript and store
it, host it on a server and then be able to execute and run your application online.
OK, so we'll see you in the next video.