Heider in this lesson we're going to talk about how to copy a file how to rename a file and how to fight.
And also we're going to apply the same operations on folder.
OK.
So let's impractically how good this OK.
First come on that let me show you here is v.
This command is used to rename a file or folder.
OK.
So let's see how to use it first.
Here you can see in my current directory here understood not the SD file is present.
OK.
So guarantees you just need to provide the command like the space in the first filename which is present
and then the new file name that you like to do.
So I'd like to get this file name as this dark DST.
OK.
So our file is in here.
So unless and here you can see our file is renamed.
Give it go pop here the you can rename a file or folder.
OK.
So let's get inside the room analysts and try to rename or pick directory.
OK here I'm going to rename piccoli.
Oh OK let's see what happens.
It says permission denied.
That means inside the root directory you cannot perform this operation without having the super user
level authority.
OK you could be a root user or a super user.
So could do this.
Use sudo and hit enter.
You'd asked for my password.
OK.
So it's just Again.
Here you can see the opiated directory is rename.
Oh.
So let me set it as it is.
We all pseudo.
Get this.
OK.
Always rename back to more pretty.
OK.
In this way we can rename a file or folder.
OK after renaming the file and folder the next thing is how to delete the file or folder.
So let's get back inside the home directory Alasan here.
This got the extra files present to remove this file.
Just type in and finally they start again.
A file is removed.
Calculus.
And here you can see there is no file present in our home directory.
OK open a wider and no credit file.
Example.
T t.
Get inside insert mode
OK here you can see it is all fine that is great.
So let's see the contents or you know create a folder
ugly Alice and or folder is created here.
OK.
So we can remove a file folder with IDM come on.
OK.
So now let me show you how to cope you'll find.
OK.
You'll find there is a command called Sep.
OK.
And after C-p you need to provide the first file name that you want to copy.
Example Darty XTi.
I want to copy it inside the folder.
OK let's get inside the LS And here you can see insert before look at the example doc XTi file is copy.
OK.
So let's get inside the room directly and try to copy any folder or file from here.
Suppose I want to copy media to home directory.
OK this time Cimbali is used to represent in home directory.
OK.
And hit enter.
It says that omitting directory media and remember that whenever you get such errors like ormer can
direct the payload option slash are ok.
And hit Enter key directories here.
OK.
So first we copied the file from folder to the Folder B.
And then we coppered the directly from the root directory.
OK.
You know home fool.
So now I would like to remove this indirectly.
So let's see what happens.
OK.
And you'll see it says that cannot remove media is a directory.
OK why are we getting this error here.
OK.
So Steve had is inside media analysts.
And here you can see because there is another fully present inside media.
That's why we are unable to deliver this directly.
So what to do in such cases in such cases.
Just provide the option slash and then media and let's see what happens.
OK.
The directory's Rimmel OK.
In this way you can remove and directly by providing slash option and the same thing you can apply for
copying.
OK let's try to remove the B and B will get destroyed in the same error.
And less the same thing does happen.
Directories are removed when we apply this last option.
OK.
In this way you can copy or fine.
You can delete a file or folder or you can also rename of file with the help of these three basic commands
that we have seen in this lesson.