we're going to learn how to use a
terminal the reason we want to use a
terminal we want to run our c code
not in the editor we're going to use it
like terminally so the reason that some
editor doesn't the reason i want to
teach you guys that some editor doesn't
have term
doesn't have run feature let me show you
what i mean it so if you go right here
so right here is that you can when you
write your code you can write
run your record like from here like has
a run feature from xcode so let's say
you don't have macbook and you use
another editor so
maybe you don't have this feature so
that's why it will be best option to use
a terminal
so
so with the terminal terminal is a
different way to control computers so
right here so
terminal isn't that so
so i'm gonna now before
before i'm gonna teach you how to run
the
sequel from the terminal i will teach
you some comment how to go different
files to different file so
so let's say
we open right here
right here
so
so the front terminal to see where we
are
to see where our directory so we do
p
w
d
and it show where we are so right here
so
we are in this directory
so we want to see what's inside this
directory let's say all these file is in
this therapy we go ls is a show the
directory what is the inside in the
nabil in the build directory right here
so is it show all of this right here
and
we want to go in desktop
so
if you want to go in one file we say
d
c d
and write
the directory name let's say you want to
go desktop
we have to write exactly same like
capital if it's a capital is start
capture the
desk
top oops
see the
desk
top
so right now we are in this file field
file directory we are in right here
and if you want to make it like
one of file this is that will
touch
and let's say you want to make a
youtube
now let's say
project
dot c
if we start with that is a creative
project in desktop because we are in
desktop directory
see
is a great
project right here
so
let's directly
we are in desktop and ls we are right
here
so
dc project if you wanna like
let's see i'm just gonna copy paste i
don't wanna waste the time
[Music]
just copy paste and save make sure save
it
so right now we are in this directory
so
if you want to run this project so we
just go
with a g
cc
all
and we just make it any name any name it
will be fine i will just write hello
and write exactly the project name
let's see
see is it create another file so right
now we're gonna run this file when we
arrive this file
is gonna
compile all the code and right here is
gonna run this code which is it will
print so because we print
in this clip
oops
and we
put the name like
it could be anything you could write
anything your name anything will be fine
and save
hello
and voila you see is a wide discord
so the purpose of this tutorial i just
wanna teach you guys if you have
c
file you don't have to have editor we
can use editor
and i mean we can use a
we can use a
terminal total one or the code and how
we do that so if we want to clean that
clean all these the
the comma
command we just do clear
so we go same directory see is it
director is a desktop here is a desktop
if you want 101
this project just that like just i show
you
cbd
dot
oh
and any name any name like let's say you
can put your name
and you write exactly the same project
name
dot c
and if you want to write it you say dot
see is it committing a view right here
that
and making sure it doesn't have like
space
that you see is a one
so this is for today and and any
questions you guys have you can put it
in the comments
[Music]
you