Now you know how to greet new files and how to edit them inside of the terminal using Shell.
And we've used sideshow obligations as the I am and Nantel now is basically my favorite text editor.
All right.
Now let me show you how to copy files and how to move files and using move command.
And you you could also rename file if you want.
All right.
Let's start by copying a specific file to a NAS or file.
Let me get your terminal.
And now I have several files here in home directory for this old user.
And let me copy file three to dig deep, to file fraud, to dig deep and simply type S.P. file through
the dig, Steve.
And next, a second argument type name on the file.
You want to copy it?
This first file into file for DOT 60.
Enter Ellis and Moe.
I see file fraud, the DSD here in this list.
Let's use additional option unless dash l.
In order to see all sort permissions and the size of the files.
And now I see the initials and size of those four files are completely the same there.
A single difference here in the modification time because those files were created and modified at different
moments of time.
All right.
That's how you could easily copious specific file.
Also, you are able of Girlschool file from ARS or location.
Let's do that.
Let's copy a file, for example, from EDC folder.
I'll start from Absolute Path Forward Slash.
It is next for what's left.
And if you'll press step twice, you'll see all possible names of directories and files you could use
here in this command.
And let's suppose that you want to copy this file.
You could choose any file you want.
Leap out.
Did dot com.
Let's edit the here in a path rescue prosecutors and the next list type liebe.
Oh and let's press step like so it will be auto completed.
And let's say that I want to copy this file into current home directory for road user.
And let's suppose that they want to name it delete but I will do it back.
Backup like so dot com.
Press enter Ellis and no I see this newly created file.
Let's read it.
Got the Liebe but gobbled it.
And I see some contents of this file.
And let me actually quickly check the size of this file and modification time unless there's L.
And here was this data.
I see permissions.
I see.
Owner.
Route user.
And I see that this file was modified to date.
All right.
This go.
You could copy.
Single file.
But what if you want to copy entire directory?
Let's try it.
Let me clear terminal.
And let's here create folder gold.
A DC backup like Soul allows L.A..
And now this folder is present here.
It is C backup.
And let's copy and tie EDC folder to D.C. backup for that.
You need to use same command CPM but with option that are required.
And lesbians, if I hear path to EDC folder like so.
And here will be a DC backup folder.
Notice that here I have used absolute wealth.
And here I have used or do path because now I am currently located in the folder that holds this subdirectory
seat back backup.
All right, let's press enter and see what will happen.
Alas, that's L.A..
Nothing was changed here.
And let's now.
Alas, the contents of a DC backup folder.
And now here I see only single folder EDC.
And if I have a look at contents of this folder, alas, a DC backup, but EDC, I'll see bunch of different
files like a leap.
I'll that.
And so on.
And that means that the folder DC itself was entirely Corbitt.
Do you see backup folder.
But what if you want to copy contents of the folder into Özer folder.
I mean without this additional DC folder.
In such case, we need to slightly modify input command.
But first, let me remove this ADC folder from the DC backup folder.
For that, we could go into a DC backup folder.
Sidis it is seat backup.
And here enter comment our M.
This are DC.
Please look at that dash.
Our option is used.
If you want to remove specific directory with files and subdirectories, let's press enter.
And now this folder is absent here.
Let's move one level up like so.
And let's go back to the command that we have entered before.
Actually, I have forgotten to show you that you are able to see entire list of all commands that you
have entered before.
By entering command history.
And here you'll see all previous comments and actually here was comment that we have used in order to
copy the D.C. folder into a D.C. backup folder.
All right, let me know, modify this comment a bit.
And with the modification, we'll copy contents of the DC folder into a DC backup folder.
Let me do that.
Again, this arm here will be, again, path to EDC folder.
But no, I'll add forward slash and add here.
Start like soul.
And with this command we will copy contents of EDC folder into a destination folder and destination
folder will be the same as before it received backup.
We could alter complete command if you want.
Let's not press enter and no, let's at least the contents of a DC backup folder.
And now I see all files without any additional intermediate DC folder.
That's what we have actually achieved using this command.
It is C slash star.
All right.
This is how you're able to copy different directories.
Let's move on.
And now let me demonstrate to you how you could rename specific file.
Let me clear time and no.
And let's list files and folders here.
And let's suppose that I want to rename file for the Dig Deep to file five DODIG Deep.
For that you could use command and view.
That stands for Move File for the takes you.
And here is a second argument will be you file name for this file file.
File Dodig Steve.
Santorum.
Alas and no, I don't see a file for the text here on this list.
But a C file file of the extreme.
And of course, contents of this file where unchaste and that they are the same as where included into
file for the text.
All right.
That's how you could name a specific file.
Now, let me show you how you could use same command in order to move a specific file from a specific
location to Özal location.
Let's list files and folders here.
And let's suppose that I want to move a specific file from this newly created seat backup folder to
this home directory.
And let's move, for example, this file guy dot com.
For that, I could use.
And if you come out here, we'll be path to this file.
I'll use a relative path.
Is DC backup?
And next, we'll be file name guy.
And the next, I'll type simply the name of the file.
That will be used for storage of this file in the new location.
And if I want to move it without the modification of the file name, I could simply type guy dot.
And it will be moved with the same name guy dot com.
Let's press enter.
Let's list files.
And now I see here this file.
And if I list the contents of EDC backup folder, I should see that this file will be absent here.
And yes, that is a case.
It was moved from this folder to a Nazare folder.
That's how you could move file from a specific location to Oz location.
All right.
In the same way, you are also able to change the name of specific directory.
For example, if you want to remain a DC backup, you could use same command and view it is C backup
and let's rename it Do It DC backup to like.
So let's press enter Ellis.
And now I see that this folder was renamed A Deceit back up to.
Let's list the contents of this folder.
It is Sivak up to and no I see the same files as we have seen in DC backup folder.
All right.
That's all for Mannesmann.
The files and the directories and the disclosure I have explained you hold two copy files and folders,
hold to rename files and folders and hold to move files changing their location.
That's all for this lousier.
And in the next one, I'll tell you a bit more about reading files before we have used only got command,
but there are additional commands like Dael and Head.
Let me talk about them in the next lecture by.