Linux - File editors
Show More Show Less View Video Transcript
0:00
so basically we have seen how we can
0:02
create modify and delete a file but then
0:05
now we haven't seen how we can modify a
0:07
file by using the editors like if I have
0:10
already added a particular date I into a
0:12
file and if I want to add more data into
0:15
it
0:15
or if I want to replace the existing
0:17
particular word from a firm how we'll be
0:20
using it or how we'll be doing it so for
0:23
that we have multiple editors provided
0:26
by your Linux operating system into
0:28
already distributors so when it first
0:30
editor we have called as G edit called
0:32
as a graphical editor this is good for
0:35
the basic user or the users who are
0:37
learning annex operating system so it
0:39
provides you just like an old pad
0:41
console where you can add the content to
0:44
your file and you can modify it and just
0:46
save by using the ctrl C or by file save
0:49
option so this is very basic editor into
0:53
Linux operating system
0:54
but for this editor you should have a
0:56
dick stop utility or a dick stop
0:58
terminal if you do not have an extra
1:00
terminal how you are going to modify
1:02
your file so for that we have two
1:05
different editors called as a nano
1:06
editor and your VI or VI a man-eater
1:10
nano editor is very old editor we are
1:13
using this editor since we are using the
1:15
UNIX operating system and the advanced
1:18
our heater which we are using nowadays
1:20
is called as a VI called us we shall
1:23
edit editor or visual editor mode so
1:27
this editor mode has enhanced option we
1:30
can search we can find or we can we can
1:32
replace the data's into this VM any
1:34
turns as well so let us see how we use
1:36
this particular editors so here we can
1:40
see to edit the file now so already we
1:42
have created two different files here
1:44
that is your fruits and the numbers now
1:48
if I want to modify before so till now
1:51
we have seen fruit you know yessum and
1:53
as well as we have seen the cat come on
1:55
so that he key with the content of a
1:57
file but if I want to modify the file
2:00
and if I use the same enough cat command
2:03
and use the redirect click shine so what
2:05
it will do it will replace the existing
2:07
you know file commands completely or the
2:09
file data completely so in spite of
2:11
using the
2:13
I generally will go for the g8 which is
2:16
the graphical editor we have now if
2:19
suppose I want to add or you know remove
2:22
any of the food names fruit names or if
2:24
I want to you know to make some changes
2:27
into it or I want to modify a file so we
2:30
can go for G edit which is a graphical
2:32
editor we do have so once you click on G
2:34
edit you will find that it contains sub
2:39
all the filename now if I want to change
2:41
or you know I want to delete some of the
2:44
filename which are repeated and I want
2:47
to add a few more names over here like
2:49
for example I want to add
2:53
sweet limes if I want to add more of it
2:58
any of the you know fruit names we can
3:01
define like like grapes click so we can
3:06
add this and pause that I want to save
3:08
it like your notepad you can save it
3:10
directly over here once you have saved
3:12
it directly you can move here then we
3:14
can check your fruit names then see it's
3:19
been added so this is the you know
3:21
easiest editor you will have if you are
3:23
using on graphical console but what if
3:26
ever you are using a terminal so for
3:28
that we will be having a different
3:30
editor which we are going to see into
3:32
the next slide
#Programming
#Computer Education

