WEBVTT 00:00.770 --> 00:06.490 Have low students and welcome in this lecture we are going to talk about Linux. 00:06.660 --> 00:15.960 Text editors Now if your Linux system administrator there is no way to avoid using a text here you are 00:15.960 --> 00:19.460 going to be using it in order to create new files. 00:19.680 --> 00:23.430 You're going to be using it to edit existing files. 00:23.430 --> 00:30.370 So it's pretty much on a daily basis you could be dealing with text editors. 00:30.560 --> 00:39.570 Now when it comes to a Linux standard Linux system you'll have a choice of about three or four different 00:39.600 --> 00:41.930 kind of text editors. 00:42.020 --> 00:49.390 We're going to talk about two of the most commonly used one is called Nano and the other one is called 00:49.500 --> 01:00.720 vim the predecessor of vim was vi editor which is one of the oldest Unix as well as Linux text editor. 01:01.870 --> 01:12.220 Now as opposed to working in an editor for a Windows environment where you simply open a notepad and 01:12.220 --> 01:21.730 you start typing stuff and then you save it using taxers in Linux is a slightly more complicated because 01:21.790 --> 01:24.670 everything is done from command line. 01:24.670 --> 01:32.710 And so if you're going to go over each of these text editors in a little bit of detail in the next slide 01:33.160 --> 01:38.820 and we'll go are some live examples so you can see how to use them. 01:38.950 --> 01:46.060 And also there's all these many pages available on these bitches which has more details about the syntax 01:46.390 --> 01:47.260 and examples 01:50.680 --> 01:52.450 so to start naming them. 01:53.100 --> 02:01.950 We are were to just type in a without a file name you just open up a blank screen like this and this 02:01.950 --> 02:03.940 will let you create a new file. 02:04.110 --> 02:08.490 And as you can see at the bottom you have to get help. 02:08.600 --> 02:22.260 So control G will give you the main nano help text and control Y give you the previous control the give 02:22.260 --> 02:23.520 you the next page. 02:24.880 --> 02:33.790 Control and will give you the next line and so on control X will let us it to the previous page and 02:33.820 --> 02:38.560 under the control X will get us out of the main menu. 02:38.560 --> 02:47.100 Now suppose if I want to create a file and then want to give it a name call it test. 02:47.150 --> 02:58.090 Now the file name sits right here file is test and is also there's a version it's called Binu nano 2.3 02:58.150 --> 02:59.000 point one. 02:59.100 --> 03:03.120 That's the version the offline are that you are running on the system right now. 03:06.250 --> 03:12.120 So once I'm in the no no blank file this is the does and how a name yet. 03:12.220 --> 03:19.210 And if I want to bring in the file that is on existing I'll have to do is control our Illit type the 03:19.210 --> 03:20.500 name of the file. 03:20.500 --> 03:31.280 Suppose if I want to open up the file see password I'll type in UTC password and there you go. 03:31.300 --> 03:34.930 This is our password file for the system. 03:34.930 --> 03:41.380 One of the users that you created previously was a student and you can see an entry for a student in 03:41.380 --> 03:41.940 here. 03:42.340 --> 03:48.160 But since I'm logged in as a non root user right now I cannot add to the file. 03:48.160 --> 03:54.470 I can look at it I can read it but since I'm not root I cannot do anything else with it. 03:56.440 --> 03:58.420 They can do a controlled X at this point. 03:58.440 --> 04:01.630 It is going to ask me Do you want to save this file. 04:01.830 --> 04:02.680 I don't want. 04:02.730 --> 04:05.500 I didn't make any changes so I don't want to save. 04:05.770 --> 04:06.800 And to get up.