Welcome back, ladies and gentlemen, this will be a short lecture here, are we going to start working
on it before we start working on a project?
We need to use the command line now.
I'm going to use the window so it's a little bit different from the Mac, but I will try to explain
the max commands as well.
Now, command line is something that we need to install the back packages just later on.
So if you have knowledge about using the command prompt or terminal in the max, then you are OK with
this lecture.
You can skip this lecture now in Mac, it's called terminal to open up the terminal and in Windows it's
called command prompt.
So how you can open it is to stop here.
CMD and he enters.
I'm using Windows 10.
Right, so I can zoom in this one little bit to make it more visible.
Now, here in the desktop, I do have you can create a folder here, empty folder, or you can use this
MAPI starter so you can grab this from the resources because we're going to start working shortly with
this file folder as well.
OK, but if you want to sit back and watch it, then just please do this because I know a lot of you
guys just want to do that.
And after that you can start working on your projects.
OK, now I do have a couple of folders here.
So what I can do here in Linux or Max, it allows and it will list all of the directories, but in Windows
is D.R and it will list all of the directories here.
I have 22 directories, three files, stuff like that.
What if I want to go to the desktop?
What everything is located for me.
OK, now I need to go see in the name.
So desktop in the name of the directory down when I go.
Right.
And this will if I put, if I press enter I will go, I will change from this until this up to this
rupture is going to go restaged slash that stuff.
So that's it is my desktop.
So if I use D-R.
So actually I did explain CD means change directorate's.
The same for Macs and it's the same for Linux.
Now I can use Elst for week for Macs or D-R to see what's happening here.
Now I do have a couple of things here.
I do have two files and five directories.
Right.
And I want to go to this map starter.
Good.
So I'm going to use change director again, space moppy.
Emma, you can press step here and it will give you it will out the complete until here.
Why?
Because I have to with the same name.
So I need to start typing until something is different from this too.
So the terminal will know what I'm trying to do.
So now if I type stab again it will complete the second one because OK, this mapi dash is different
than the mapping.
Right.
And if I click enter.
So I'm inside this map mapi started.
OK, let me show you what I have in this map started.
I do have this distribution folder and I do have the source folder.
Right.
OK, now if I use the the R or else it will give me just exactly what I'm trying to tell you now so
you know how to go to a directory.
But what if you want to go back.
So if you want to go one level back, so you're going to see the space double dots.
Right, and hit enter.
So remember I'm here in the map started started also when I hit enter, I will go back to the desktop
cuz now I'm back into the desktop and that is how you can move up and down.
One more thing because I've run a couple of commands here.
I can use the keyboards up and down arrows right here, and this will list all of these commands that
I've used before.
So I want to go back to DC.
The map you started.
I can enter.
I don't have to type it again.
That's cool.
Nice.
So what we can do here, we want to start using.
The next part is to create a folder, actually.
Right.
So the folder we can create we emcdda are and the name of the folder.
Right.
So we can say EMK make directory.
So I want to make the ah I want to create a folder inside a map estado.
Right.
And I'm going to call it a new folder and I'm going to hit enter.
By the way, this is the same for this is pretty much seen for Macs and Windows.
Let's confirm that I have a new folder here.
Yep.
It's empty.
So now you know how to create a folder, but how we can create a file.
So in Mac and Linux we need to write touch in the name of the file index that J is right.
So I'm not going to run this command because it's not going to execute.
So this is for for Macs and Linux.
But if I want to create a file in window.
It's a copy, no capital and you ever single out an indexed object.
This, ladies and gentlemen, will create a file here.
Oops, what's happening?
And why is that showing Gobbi index, Jarius, let's put it the oh, right, because I was not inside
this folder.
I'm just going to delete it from here.
I'm going to show you how you can delete it here.
Right.
So I need to go see the new folder and I'm going to say copy.
No index, not jazz.
OK, now if I go DVR, I will see that file here, right?
I got confused, ladies and gentlemen, a little bit.
It is I do have this file.
Now, this is in the Windows, but in in Linux or Macs, you need to use touch the name of the file.
But first, make sure that you are inside this new folder.
Cool.
Now let's learn how to copy these indexes, not just file from the new folder and put it back to the
map you started or the parent directory.
Right.
So I want to go here.
Sorry.
I want to go from this folder.
I want to copy it and I want to put it here.
OK, so in it's a little bit different in windows.
It's a little bit different in, in, in the Mac.
OK, in a map in the Mac is C.p copy in the name of the file for example, index that J.S. and the where
you want to be copied.
So I'm going to go one level up, two dots and that will go there.
So use this one if you use Mac, but if you're using windows like me, what you need to do is you need
to use the word copy.
Right.
Index that J.S. sorry.
And I want to go to the parent folder and I'm going to hit enter and say one file copy.
Now here is the index.
Jazz is dear, but I do have in the new folder, the same file is still there because I didn't delete
it.
It just copy it.
Good.
This is different now once more you need to use.
So for example here I use copy index that js and and also the the way it needs to go in here in Linux
or Mac, you need to use C.p.
OK, let's play a little bit more here from inside this new folder again, and I'm going to create a
new file.
So I'm going to say copy.
No Abduh is and this will create sorry.
Instead of yeah I had a mistake spelling mistakes.
I did copy, no apologies.
And that will create additional file in the new folder.
And I now want to move I want to completely move these at the Gere's from this new folder into MAPI
starter.
So that is not the same as a copy.
Now here are used copy and you should use touch if you use wind.
If you're using Macs right o k.
Now how we can move these files.
So in Mac is M.V. and in the windows is move.
So I'm going to use move apgar's.
But remember you need to be inside the folder and you need to specify where you need to move.
Right.
So I want to move it back to the parent folder.
I'm going to hit enter now in here.
It is the Japanese there, but it's not going to be here.
It's moved.
Right.
So now you know how to create file, create a folder, copy a file and move the file.
Good.
Now, what about to delete the swells iMac for the leading the file, for example.
I do have in new here I do have a new folder, one index of jazz and you can confirm this by D.R or
else right here it is one file.
So I just want to delete this one in Mac.
It's R.M. Index that JS and you're going to hit enter now.
This will delete the file permanently.
You will not be able to find it, delete it permanently from everywhere.
But in windows it's Dille Index Digest's.
Right, so if you enter it will not show me anything.
But if I go back here, here is I don't have this index ojars.
I do have those two here.
Right here it is.
And that means it's working.
OK, now I want to go one back CD, two dots.
So I mean mapi starting.
I'm not inside this new folder so show you how you can delete a file, but I need to show you how you
need to delete a folder.
So in a Mac it's R.M. Dash or so these are
so these are is a flag.
There are is a flag.
So R.M. flag armies delete recursively everything that it's inside the folder.
For example, if you have files it will delete all of the files one by one.
So or dash or in the name of the folder.
New folder.
Right.
But in Windows it's a little bit different.
So you need to hit enter in order this to be executed in Mac.
But Windows is are m d.r so remove directory slash forward slash s and the any new new folder.
Right.
So I'm going to enter into a.
Sure.
Yes, that's it.
Now, if I use Diaa or else I'm not going to have that directory anymore.
There it is.
I don't have it right.
That is pretty much it.
How you can delete all of those files now.
Now, we have two files here, app and.
I just want to delete so I can just show you how you can delete two files in one go so you can say Dell
App Jars and index dodgiest.
So I'm going to hit enter and here you go.
You don't have it anymore.
If I put the I want the ah they're not there.
So the same was are in Mac R.M. Index, not just an app that jazz.
Right.
So if you're using Mac.
Good.
Now one more thing that I want to show you is how you can open a file inside here.
So inside my source folder, I do have this index so I need to go CD sirc right in in Mac it's open.
So if I go DIY the are or else I will be able to see this index.
Right.
So I want to open this file.
So in Mac is open index that HTML and you need to enter.
It's not going to work for me because for me the windows you need to see start index dot html in here.
This is going to open up in a local browser.
Now for me the default browser is Firefox and that's why it's opening for you.
Maybe something else.
And here it's loading the file, but it's loading without the stylus.
That's why it's like this, right.
Oh good.
Now you know how to create files, move through directories.
And one more thing in Mac you can use clear.
Right.
To clear this entire thing.
Entire command prompt in windows a c o l r or wait, it was s.L pass or it is not why I said so in windows.
This one in Mac clear like c l.
S he'd enter.
You're going to clean the entire screen.
That is pretty much it.
So you know how to clear the screen, you know how to create files, you know how to navigate up and
down through the directories.
You know how to create new directory.
You know how to move a file, a copy file from one place to some other place.
You can delete that file.
You can delete that directory, you can delete multiple files, and also you can open up files through
the terminal.
So, yeah, that is pretty much it for this lecture.
I hope you enjoyed and learn a lot about this command problem.
Right, because you're going to need it.
This for next lecture.
We're going to install a couple of things for this.
And I'm sure now that you know how this is working and that's pretty much it, I hope I'm going to see
you in the next one and stay safe.