WEBVTT

00:08.780 --> 00:13.380
Help friends in this lesson we're going to learn about the basics of nano editor.

00:13.480 --> 00:15.590
So what is Nano Nano.

00:15.650 --> 00:17.430
That is a basic text editor.

00:17.440 --> 00:17.740
OK.

00:17.740 --> 00:21.330
And it is easy to use text editor inside the linux.

00:21.340 --> 00:21.670
OK.

00:21.780 --> 00:24.850
But with the help of nano editor you can create text files.

00:24.850 --> 00:33.520
You can it into configuration files or Also you can sue or create and C programming file C++ or Python

00:33.520 --> 00:34.640
programming files.

00:34.750 --> 00:37.820
It acts like the editor for the programming and wildmen.

00:38.030 --> 00:38.410
OK.

00:38.470 --> 00:44.190
So let's see practically how to use the man editor OK to start the Nano editor.

00:44.200 --> 00:46.830
You just need to type the come on man.

00:47.210 --> 00:47.540
OK.

00:47.590 --> 00:50.000
And here the Nano it is started.

00:50.160 --> 00:50.580
OK.

00:50.620 --> 00:56.570
At the bottom here you can see these are the short cut keys and their uses is displayed here.

00:56.660 --> 01:02.400
OK so control G is for health control or for right out of control W4 very.

01:02.490 --> 01:03.430
I like that.

01:03.460 --> 01:06.900
So we're going to learn about these one by one here.

01:07.150 --> 01:09.260
First of all type something here.

01:09.530 --> 01:11.170
Hello world.

01:14.820 --> 01:22.140
This is the stairs to understand nano to kick.

01:22.180 --> 01:25.150
Now retype this data to this file.

01:25.590 --> 01:28.750
So Hoku still the file here with the help of nanometer.

01:28.860 --> 01:32.800
So you just need to press control at all on your keyboard.

01:33.030 --> 01:36.540
And here you can see it says that filename right.

01:36.650 --> 01:41.100
OK means you need to upload the filename so I'm going to provide the file name.

01:41.100 --> 01:44.180
And suppose the XTi.

01:44.360 --> 01:44.700
OK.

01:44.790 --> 01:46.370
So it says file exist.

01:46.380 --> 01:46.840
OK.

01:46.920 --> 01:48.990
There is a file already present there.

01:48.990 --> 01:50.550
So press y here.

01:50.550 --> 01:51.770
Now the file itself.

01:51.880 --> 01:56.120
OK so press control X to get the new data.

01:56.270 --> 01:56.790
OK.

01:56.870 --> 02:02.190
And now all files Isilda here on the home directory of oppression.

02:02.640 --> 02:04.650
OK here you can see this copy.

02:04.740 --> 02:06.240
The file is present here.

02:06.260 --> 02:10.900
OK not one point that you know in which you are currently in.

02:10.980 --> 02:11.590
OK.

02:11.700 --> 02:14.600
The file is a medically listserver in that directory.

02:14.610 --> 02:17.130
If you do not provide the location for saving.

02:17.290 --> 02:23.430
OK let's see the contents of the file just have to come on KAC get the display the contents of that

02:23.430 --> 02:23.820
file.

02:23.820 --> 02:27.320
So here you can see these are the contents of all fine.

02:27.490 --> 02:27.730
OK.

02:27.750 --> 02:35.180
You can start or you can open this file another way like nano and Plourde the file part as they start

02:35.430 --> 02:37.370
XTi press.

02:37.380 --> 02:41.490
And here you can see it displays that file contents.

02:41.580 --> 02:45.920
In this way you can open any file with delcassé nanometer radically.

02:46.080 --> 02:49.590
You just need to provide the full part of that fine.

02:49.640 --> 02:50.040
OK.

02:50.130 --> 02:53.330
Let's see the working of control E.W..

02:53.370 --> 02:54.580
That is where it is.

02:54.630 --> 02:59.850
It is used to find the text present or search the text inside the fine.

02:59.910 --> 03:04.790
So our file is small here so I suppose you'll find it so long.

03:04.860 --> 03:05.450
OK.

03:05.610 --> 03:08.510
Which contains huge coal or huge eggs.

03:08.550 --> 03:13.360
And you want to find a product line and that time control w is useful.

03:13.410 --> 03:15.020
OK so Prescot De-Lovely.

03:15.120 --> 03:19.550
And here you need to Plourde the key word or the word search for.

03:19.560 --> 03:23.520
So I'm going to insert here Nano and then.

03:23.770 --> 03:30.780
Get here you can see it displays the blinking cursor you don't know word this way you can search a particular

03:30.780 --> 03:34.490
word or get inside and I did a bit of control.

03:34.690 --> 03:34.970
OK.

03:34.980 --> 03:40.960
The next thing I would like to show you is how you cut and paste with the help of an auditor.

03:41.020 --> 03:49.090
Suppose I got this word nano or this whole line nano emitter suppressed control key.

03:49.110 --> 03:49.520
OK.

03:49.560 --> 03:51.360
The whole line goes away.

03:51.430 --> 03:55.080
And I want to start at the bottom.

03:55.080 --> 04:03.660
So press control you get in this way you can cut and paste the line or the text with the help of this

04:03.740 --> 04:08.340
man or editor and so you want to copy and paste the whole line.

04:08.430 --> 04:17.830
So to copy and paste what you need to do is press eiter a you can select the whole line and after that

04:18.010 --> 04:25.760
press item 6 and go to the bottom and press control you get this very you can't copy and paste.

04:25.810 --> 04:26.370
OK.

04:26.380 --> 04:29.280
With the help of Alda's except control you.

04:29.440 --> 04:29.990
OK.

04:30.130 --> 04:34.790
An after is used to select a particular word or particular text.

04:34.780 --> 04:38.790
Ok suppose I want to god this understand word.

04:39.240 --> 04:47.740
So breast artery and with the help of arrow keys you can select that word of that press control key

04:47.840 --> 04:48.270
again.

04:48.340 --> 04:56.550
This way that word is cut and here with the help of control you best and say also press control.

04:56.580 --> 04:56.980
OK.

04:57.070 --> 04:57.400
OK.

04:57.400 --> 04:59.710
Here it shows the filename to right.

04:59.710 --> 05:03.330
So press enter or you can turn the filename here.

05:03.370 --> 05:06.300
You can see the same file with the another name.

05:06.370 --> 05:06.800
OK.

05:06.870 --> 05:14.500
In this way you can save the file or you can cut paste or you can copy paste with the help of this basic

05:14.500 --> 05:15.380
N.A. editor.

05:15.430 --> 05:22.980
Ok control is used to justify suppress good quality so it will justify all the text present here.

05:24.530 --> 05:26.920
Support you press your control.

05:27.220 --> 05:31.930
Get it this way it will just defy the text prose and you were fine.

05:32.460 --> 05:36.020
So these settings and control acts.

05:36.050 --> 05:36.750
OK.

05:37.030 --> 05:37.630
Clear.

05:37.810 --> 05:38.330
OK.

05:38.470 --> 05:40.220
Let's start now I know.

05:40.490 --> 05:53.830
And here I want to create a new file with a low or you know looks like he does Six get control you this

05:53.830 --> 05:57.180
way you can copy paste.

06:02.630 --> 06:04.020
Press control.

06:04.200 --> 06:14.080
It says level is the key is and control locks control locks to get clear.

06:14.350 --> 06:16.240
Let's the contents on the fine.

06:16.520 --> 06:17.830
Yes.

06:18.050 --> 06:20.250
OK these are the contents.

06:20.400 --> 06:23.160
Now open up nanometer here.

06:23.370 --> 06:29.450
Suppose you want to open that file to read so that there is an option control are OK.

06:29.620 --> 06:34.860
So here you need to prove the filename case taught me the key.

06:34.990 --> 06:38.520
And in this way you can open an existing file for reading.

06:38.550 --> 06:38.830
OK.

06:38.860 --> 06:40.460
With the help of control are.

06:40.520 --> 06:40.960
OK.

06:41.020 --> 06:46.810
OK now suppose you want to replace a word in this file then you can simply replace this with the control

06:46.810 --> 06:47.920
and backward slash.

06:47.970 --> 06:50.690
OK so press control back or slash.

06:50.860 --> 06:54.890
It asks you to search for the word that you want to replace.

06:54.940 --> 07:01.020
I want to replace the word word OK and replace it with you guys.

07:01.200 --> 07:01.720
OK.

07:01.970 --> 07:03.960
Now it's us you replace.

07:03.960 --> 07:10.130
This instance means all or all for only one word guessable I press.

07:10.190 --> 07:15.860
And then you can see here all the words are replace here with guys.

07:16.090 --> 07:21.200
In this way you can replace one word or the whole word with the same name.

07:21.460 --> 07:25.360
With that both control and backward slash combination.

07:25.360 --> 07:30.780
And if you want to go in deep OK with this editor you can simply type control.

07:30.880 --> 07:36.720
And here you can see these are the shortcut keys and their uses are displayed in this file.

07:36.820 --> 07:39.750
So you can go in deeper if you want.

07:39.790 --> 07:40.210
OK.

07:40.330 --> 07:47.620
With that of this control the option in this way this nanometer is Eudes to create a file to save the

07:47.620 --> 07:49.750
file or to read the existing fine.

07:49.780 --> 07:50.370
OK.

07:50.410 --> 07:52.410
And we're going to learn more about it.

07:52.670 --> 07:53.020
OK.

07:53.040 --> 07:59.830
In our upcoming lessons like we gonna do the configuration files and make changes to our system as we

07:59.830 --> 08:01.650
move forward in this course.
