Have low students and welcome in this lecture we are going to talk about Linux.
Text editors Now if your Linux system administrator there is no way to avoid using a text here you are
going to be using it in order to create new files.
You're going to be using it to edit existing files.
So it's pretty much on a daily basis you could be dealing with text editors.
Now when it comes to a Linux standard Linux system you'll have a choice of about three or four different
kind of text editors.
We're going to talk about two of the most commonly used one is called Nano and the other one is called
vim the predecessor of vim was vi editor which is one of the oldest Unix as well as Linux text editor.
Now as opposed to working in an editor for a Windows environment where you simply open a notepad and
you start typing stuff and then you save it using taxers in Linux is a slightly more complicated because
everything is done from command line.
And so if you're going to go over each of these text editors in a little bit of detail in the next slide
and we'll go are some live examples so you can see how to use them.
And also there's all these many pages available on these bitches which has more details about the syntax
and examples
so to start naming them.
We are were to just type in a without a file name you just open up a blank screen like this and this
will let you create a new file.
And as you can see at the bottom you have to get help.
So control G will give you the main nano help text and control Y give you the previous control the give
you the next page.
Control and will give you the next line and so on control X will let us it to the previous page and
under the control X will get us out of the main menu.
Now suppose if I want to create a file and then want to give it a name call it test.
Now the file name sits right here file is test and is also there's a version it's called Binu nano 2.3
point one.
That's the version the offline are that you are running on the system right now.
So once I'm in the no no blank file this is the does and how a name yet.
And if I want to bring in the file that is on existing I'll have to do is control our Illit type the
name of the file.
Suppose if I want to open up the file see password I'll type in UTC password and there you go.
This is our password file for the system.
One of the users that you created previously was a student and you can see an entry for a student in
here.
But since I'm logged in as a non root user right now I cannot add to the file.
I can look at it I can read it but since I'm not root I cannot do anything else with it.
They can do a controlled X at this point.
It is going to ask me Do you want to save this file.
I don't want.
I didn't make any changes so I don't want to save.
And to get up.