WEBVTT

00:09.400 --> 00:16.270
Heider in this lesson we're going to talk about how to copy a file how to rename a file and how to fight.

00:16.390 --> 00:20.640
And also we're going to apply the same operations on folder.

00:20.740 --> 00:21.230
OK.

00:21.370 --> 00:26.030
So let's impractically how good this OK.

00:26.130 --> 00:29.870
First come on that let me show you here is v.

00:30.000 --> 00:33.260
This command is used to rename a file or folder.

00:33.360 --> 00:33.960
OK.

00:33.990 --> 00:36.800
So let's see how to use it first.

00:36.840 --> 00:42.260
Here you can see in my current directory here understood not the SD file is present.

00:42.360 --> 00:42.830
OK.

00:42.860 --> 00:50.700
So guarantees you just need to provide the command like the space in the first filename which is present

00:51.120 --> 00:54.710
and then the new file name that you like to do.

00:54.750 --> 01:00.240
So I'd like to get this file name as this dark DST.

01:00.500 --> 01:00.980
OK.

01:01.080 --> 01:03.190
So our file is in here.

01:03.460 --> 01:08.250
So unless and here you can see our file is renamed.

01:08.630 --> 01:12.480
Give it go pop here the you can rename a file or folder.

01:12.600 --> 01:13.090
OK.

01:13.290 --> 01:21.460
So let's get inside the room analysts and try to rename or pick directory.

01:21.540 --> 01:26.080
OK here I'm going to rename piccoli.

01:26.560 --> 01:28.680
Oh OK let's see what happens.

01:28.720 --> 01:30.830
It says permission denied.

01:30.870 --> 01:38.090
That means inside the root directory you cannot perform this operation without having the super user

01:38.120 --> 01:39.290
level authority.

01:39.400 --> 01:43.560
OK you could be a root user or a super user.

01:43.560 --> 01:45.120
So could do this.

01:45.270 --> 01:48.900
Use sudo and hit enter.

01:48.930 --> 01:51.440
You'd asked for my password.

01:52.840 --> 01:53.520
OK.

01:54.180 --> 01:56.790
So it's just Again.

01:57.450 --> 02:00.890
Here you can see the opiated directory is rename.

02:00.980 --> 02:01.580
Oh.

02:01.920 --> 02:06.130
So let me set it as it is.

02:06.370 --> 02:11.290
We all pseudo.

02:11.390 --> 02:12.670
Get this.

02:13.100 --> 02:13.600
OK.

02:13.670 --> 02:15.820
Always rename back to more pretty.

02:16.030 --> 02:16.310
OK.

02:16.310 --> 02:19.110
In this way we can rename a file or folder.

02:19.430 --> 02:26.640
OK after renaming the file and folder the next thing is how to delete the file or folder.

02:26.870 --> 02:31.430
So let's get back inside the home directory Alasan here.

02:31.490 --> 02:35.060
This got the extra files present to remove this file.

02:35.240 --> 02:40.520
Just type in and finally they start again.

02:40.890 --> 02:42.210
A file is removed.

02:42.420 --> 02:43.240
Calculus.

02:43.280 --> 02:47.570
And here you can see there is no file present in our home directory.

02:47.750 --> 02:52.450
OK open a wider and no credit file.

02:52.460 --> 02:53.290
Example.

02:53.350 --> 02:55.270
T t.

02:55.500 --> 02:56.820
Get inside insert mode

03:10.400 --> 03:14.700
OK here you can see it is all fine that is great.

03:15.070 --> 03:22.080
So let's see the contents or you know create a folder

03:27.120 --> 03:31.320
ugly Alice and or folder is created here.

03:31.480 --> 03:32.080
OK.

03:32.080 --> 03:36.450
So we can remove a file folder with IDM come on.

03:36.460 --> 03:36.890
OK.

03:37.060 --> 03:40.290
So now let me show you how to cope you'll find.

03:40.660 --> 03:41.560
OK.

03:41.750 --> 03:45.990
You'll find there is a command called Sep.

03:46.150 --> 03:46.610
OK.

03:46.700 --> 03:52.420
And after C-p you need to provide the first file name that you want to copy.

03:52.480 --> 03:54.730
Example Darty XTi.

03:54.900 --> 04:00.570
I want to copy it inside the folder.

04:01.250 --> 04:09.330
OK let's get inside the LS And here you can see insert before look at the example doc XTi file is copy.

04:09.450 --> 04:09.890
OK.

04:10.120 --> 04:20.410
So let's get inside the room directly and try to copy any folder or file from here.

04:20.410 --> 04:26.010
Suppose I want to copy media to home directory.

04:26.240 --> 04:30.560
OK this time Cimbali is used to represent in home directory.

04:30.700 --> 04:31.350
OK.

04:31.720 --> 04:32.880
And hit enter.

04:32.910 --> 04:39.640
It says that omitting directory media and remember that whenever you get such errors like ormer can

04:39.680 --> 04:43.700
direct the payload option slash are ok.

04:43.990 --> 04:48.200
And hit Enter key directories here.

04:48.830 --> 04:49.440
OK.

04:49.750 --> 04:55.310
So first we copied the file from folder to the Folder B.

04:55.510 --> 04:59.700
And then we coppered the directly from the root directory.

05:00.040 --> 05:00.590
OK.

05:00.700 --> 05:02.050
You know home fool.

05:02.320 --> 05:05.980
So now I would like to remove this indirectly.

05:06.040 --> 05:08.420
So let's see what happens.

05:09.080 --> 05:09.860
OK.

05:10.050 --> 05:15.850
And you'll see it says that cannot remove media is a directory.

05:16.000 --> 05:18.990
OK why are we getting this error here.

05:19.150 --> 05:19.650
OK.

05:20.050 --> 05:24.450
So Steve had is inside media analysts.

05:24.460 --> 05:28.540
And here you can see because there is another fully present inside media.

05:28.750 --> 05:32.800
That's why we are unable to deliver this directly.

05:32.800 --> 05:37.350
So what to do in such cases in such cases.

05:37.600 --> 05:45.110
Just provide the option slash and then media and let's see what happens.

05:45.450 --> 05:45.790
OK.

05:45.820 --> 05:48.030
The directory's Rimmel OK.

05:48.340 --> 05:56.230
In this way you can remove and directly by providing slash option and the same thing you can apply for

05:56.380 --> 05:57.050
copying.

05:57.270 --> 06:04.730
OK let's try to remove the B and B will get destroyed in the same error.

06:05.400 --> 06:08.760
And less the same thing does happen.

06:08.800 --> 06:12.910
Directories are removed when we apply this last option.

06:13.090 --> 06:13.530
OK.

06:13.720 --> 06:15.840
In this way you can copy or fine.

06:16.030 --> 06:24.190
You can delete a file or folder or you can also rename of file with the help of these three basic commands

06:24.400 --> 06:27.220
that we have seen in this lesson.
