Help friends in this lesson we're going to learn about the basics of nano editor.
So what is Nano Nano.
That is a basic text editor.
OK.
And it is easy to use text editor inside the linux.
OK.
But with the help of nano editor you can create text files.
You can it into configuration files or Also you can sue or create and C programming file C++ or Python
programming files.
It acts like the editor for the programming and wildmen.
OK.
So let's see practically how to use the man editor OK to start the Nano editor.
You just need to type the come on man.
OK.
And here the Nano it is started.
OK.
At the bottom here you can see these are the short cut keys and their uses is displayed here.
OK so control G is for health control or for right out of control W4 very.
I like that.
So we're going to learn about these one by one here.
First of all type something here.
Hello world.
This is the stairs to understand nano to kick.
Now retype this data to this file.
So Hoku still the file here with the help of nanometer.
So you just need to press control at all on your keyboard.
And here you can see it says that filename right.
OK means you need to upload the filename so I'm going to provide the file name.
And suppose the XTi.
OK.
So it says file exist.
OK.
There is a file already present there.
So press y here.
Now the file itself.
OK so press control X to get the new data.
OK.
And now all files Isilda here on the home directory of oppression.
OK here you can see this copy.
The file is present here.
OK not one point that you know in which you are currently in.
OK.
The file is a medically listserver in that directory.
If you do not provide the location for saving.
OK let's see the contents of the file just have to come on KAC get the display the contents of that
file.
So here you can see these are the contents of all fine.
OK.
You can start or you can open this file another way like nano and Plourde the file part as they start
XTi press.
And here you can see it displays that file contents.
In this way you can open any file with delcassé nanometer radically.
You just need to provide the full part of that fine.
OK.
Let's see the working of control E.W..
That is where it is.
It is used to find the text present or search the text inside the fine.
So our file is small here so I suppose you'll find it so long.
OK.
Which contains huge coal or huge eggs.
And you want to find a product line and that time control w is useful.
OK so Prescot De-Lovely.
And here you need to Plourde the key word or the word search for.
So I'm going to insert here Nano and then.
Get here you can see it displays the blinking cursor you don't know word this way you can search a particular
word or get inside and I did a bit of control.
OK.
The next thing I would like to show you is how you cut and paste with the help of an auditor.
Suppose I got this word nano or this whole line nano emitter suppressed control key.
OK.
The whole line goes away.
And I want to start at the bottom.
So press control you get in this way you can cut and paste the line or the text with the help of this
man or editor and so you want to copy and paste the whole line.
So to copy and paste what you need to do is press eiter a you can select the whole line and after that
press item 6 and go to the bottom and press control you get this very you can't copy and paste.
OK.
With the help of Alda's except control you.
OK.
An after is used to select a particular word or particular text.
Ok suppose I want to god this understand word.
So breast artery and with the help of arrow keys you can select that word of that press control key
again.
This way that word is cut and here with the help of control you best and say also press control.
OK.
Here it shows the filename to right.
So press enter or you can turn the filename here.
You can see the same file with the another name.
OK.
In this way you can save the file or you can cut paste or you can copy paste with the help of this basic
N.A. editor.
Ok control is used to justify suppress good quality so it will justify all the text present here.
Support you press your control.
Get it this way it will just defy the text prose and you were fine.
So these settings and control acts.
OK.
Clear.
OK.
Let's start now I know.
And here I want to create a new file with a low or you know looks like he does Six get control you this
way you can copy paste.
Press control.
It says level is the key is and control locks control locks to get clear.
Let's the contents on the fine.
Yes.
OK these are the contents.
Now open up nanometer here.
Suppose you want to open that file to read so that there is an option control are OK.
So here you need to prove the filename case taught me the key.
And in this way you can open an existing file for reading.
OK.
With the help of control are.
OK.
OK now suppose you want to replace a word in this file then you can simply replace this with the control
and backward slash.
OK so press control back or slash.
It asks you to search for the word that you want to replace.
I want to replace the word word OK and replace it with you guys.
OK.
Now it's us you replace.
This instance means all or all for only one word guessable I press.
And then you can see here all the words are replace here with guys.
In this way you can replace one word or the whole word with the same name.
With that both control and backward slash combination.
And if you want to go in deep OK with this editor you can simply type control.
And here you can see these are the shortcut keys and their uses are displayed in this file.
So you can go in deeper if you want.
OK.
With that of this control the option in this way this nanometer is Eudes to create a file to save the
file or to read the existing fine.
OK.
And we're going to learn more about it.
OK.
In our upcoming lessons like we gonna do the configuration files and make changes to our system as we
move forward in this course.